Subarray with sum 0 | GeeksforGeeks | Hashing data structure | Leetcode DSA series | Prefix Sum

Опубликовано: 23 Октябрь 2024
на канале: Hello World
38,384
964

This is the video under the series of DATA STRUCTURE & ALGORITHM in a HASHING Playlist. We are going to solve the problem "Subarray with 0 sum" from geeks for geeks which are solved by using unordered_set in c++

Given an array of positive and negative numbers. Find if there is a subarray (of size at least one) with 0 sum.

Input:
5
4 2 -3 1 6

Output:
Yes

Explanation: 2, -3, 1 is the subarray with sum 0.

We also Provide courses on Competitive Programming and Data structure and Algorithms. Please see our Full Playlist on our Channel.
----------------------------------------------------------------------------------------

Subarray with 0 sum: https://practice.geeksforgeeks.org/pr...
code in This Video: https://github.com/Prince-1501/Hello_...
Pdf in this video: https://github.com/Prince-1501/Hello_...

----------------------------------------------------------------------------------------

*Unacademy *
INVITATION CODE: HELLOWORLD

Daily classes and courses: https://unacademy.com/goal/competitiv...
Open for All classes: http://unacademy.cc/daily_learning

BATCHES FOR INTERMEDIATES
UPRISE (Track 1): Complete Course on Transitioning from Python to C++: https://bit.ly/3dCWfxB
UPRISE (Track 2): Complete Course on Transitioning from JAVA to C++: https://bit.ly/3sEwZv5
Prodigy 2.0: Advanced Data Structures and Algorithms: https://bit.ly/3dC2vWh

BATCHES FOR BEGINNERS
SUMMIT 2.0- Comprehensive Course on Data Structures and Algorithms: https://bit.ly/2RVLfTF

Check out the star educators here: http://unacademy.cc/EducatorYT

----------------------------------------------------------------------------------------
*Follow me *
LinkedIn►   / iamprince  
Facebook►   / helloworldofficials  
Instagram►   / helloworldbyprince  
Twitter►   / prince_king_  
Telegram► https://telegram.me/helloworldbyprince
----------------------------------------------------------------------------------------

►Our Playlists on:-
►Competitive Programming:    • How to start Competitive Programming ...  
►C++ Full Course :    • L-01 || Introduction and History of C...  
►Algorithms:    • L-01 || Prefix Sum Array || Algorithms  
►Data Structure:    • Data Structures with Code Practice | ...  

------------------------------------------------------------------------

🌟 Please leave a LIKE ❤️ and SUBSCRIBE for more AMAZING content! 🌟

✨ Tags ✨
how to find Subarray with 0 sum
question asked in Goldman Sachs interview
how to crack Goldman Sachs online test
how to crack Goldman Sachs
off-campus placement
how to learn to code for beginners
Subarray with 0 sum
hashing in data structure
Best Telegram channel for Off-campus Placement drive
hashing in a data structure in Hindi
unordered_set

#hashing #geeksforgeeks #programming