- 323
- 998 329
Aditya Rajiv
India
Приєднався 7 тра 2016
Count of Smaller Numbers After Self | Gfg gift in description | Merge sort thought process explained
To avail discount on all courses on geeks for geeks you can use the code ADIRAJ10 to get 10%off.
Link to the courses: practice.geeksforgeeks.org/courses
offer available for lifetime!
________________________________________________________________________
Best book for DSA revision before interviews:
amzn.to/3sLMBzU
________________________________________________________________________
solution to problem:
ideone.com/PSnL6q
problem link:
leetcode.com/problems/count-of-smaller-numbers-after-self/
________________________________________________________________________
All my playlists:
DSA sheet:
ua-cam.com/play/PLlGpFGXC9XnYOMturcfblGyym6wPGGvKF.html
Interview experiences:
ua-cam.com/play/PLlGpFGXC9XnbIG5jkAzV2IsWPG7a0adQy.html
Leetcode problems:
ua-cam.com/play/PLlGpFGXC9Xna36CAIr5x3VamSTwoqu5gu.html
projects for resume:
ua-cam.com/play/PLlGpFGXC9XnZjb-9hgo_9uSN16s4HTcgN.html
___________________________________________________________________________
Connect with me on LinkedIn:
www.linkedin.com/in/aditya-rajiv-0606491a5/
Connect with me on Instagram:
adi_rajiv
#gfg #leetcode #mergesort #cp #coding #stl #gfg #faang #maang #algorithms #datastructure
Link to the courses: practice.geeksforgeeks.org/courses
offer available for lifetime!
________________________________________________________________________
Best book for DSA revision before interviews:
amzn.to/3sLMBzU
________________________________________________________________________
solution to problem:
ideone.com/PSnL6q
problem link:
leetcode.com/problems/count-of-smaller-numbers-after-self/
________________________________________________________________________
All my playlists:
DSA sheet:
ua-cam.com/play/PLlGpFGXC9XnYOMturcfblGyym6wPGGvKF.html
Interview experiences:
ua-cam.com/play/PLlGpFGXC9XnbIG5jkAzV2IsWPG7a0adQy.html
Leetcode problems:
ua-cam.com/play/PLlGpFGXC9Xna36CAIr5x3VamSTwoqu5gu.html
projects for resume:
ua-cam.com/play/PLlGpFGXC9XnZjb-9hgo_9uSN16s4HTcgN.html
___________________________________________________________________________
Connect with me on LinkedIn:
www.linkedin.com/in/aditya-rajiv-0606491a5/
Connect with me on Instagram:
adi_rajiv
#gfg #leetcode #mergesort #cp #coding #stl #gfg #faang #maang #algorithms #datastructure
Переглядів: 2 363
Відео
Matchsticks to square | LeetCode | Simple solution | Backtracking | Bitmask
Переглядів 1,6 тис.2 роки тому
To avail discount on all courses on geeks for geeks you can use the code ADIRAJ10 to get 10%off. Link to the courses: practice.geeksforgeeks.org/courses offer available for lifetime! Best book for DSA revision before interviews: amzn.to/3sLMBzU solution to problem: ideone.com/pzUkvH problem link: leetcode.com/problems/matchsticks-to-square/ All my playlists: DSA sheet: ua-cam.com/play/PLlGpFGXC...
LeetCode BiWeekly contest 80 | Count Subarrays With Score Less Than K | Check description
Переглядів 2,8 тис.2 роки тому
count subarrays with sum less than k : www.geeksforgeeks.org/number-subarrays-sum-less-k/ Best book for DSA revision before interviews: amzn.to/3sLMBzU solution to problem: ideone.com/fdcHat problem link: leetcode.com/contest/biweekly-contest-80/problems/count-subarrays-with-score-less-than-k/ All my playlists: DSA sheet: ua-cam.com/play/PLlGpFGXC9XnYOMturcfblGyym6wPGGvKF.html Interview experie...
How can you prepare for Amazon | Most asked question | Personal opinion | SDE
Переглядів 2,3 тис.2 роки тому
Coding Ninjas scholarship test link: www.codingninjas.com/landing/scholarship-test/ Use the code ADIMAGINZ to avail a 50% discount on registration fees bit.ly/3LEnPbl Best book to revise all DSA concepts before interviews: Cracking the coding interview: amzn.to/3yMXmFW Quantitative aptitude: amzn.to/38AwIFK Connect with me on LinkedIn: www.linkedin.com/in/aditya-rajiv-0606491a5/ If you like my ...
LeetCode Weekly contest 291 | Total Appeal of A String (Hard)
Переглядів 5 тис.2 роки тому
Best book for DSA revision before interviews: amzn.to/3sLMBzU How can you prepare for amazon: ua-cam.com/video/nPZ6dspG5kE/v-deo.html solution to problem: ideone.com/WsDA7h problem link: leetcode.com/contest/weekly-contest-291/problems/total-appeal-of-a-string/ All my playlists: DSA sheet: ua-cam.com/play/PLlGpFGXC9XnYOMturcfblGyym6wPGGvKF.html Interview experiences: ua-cam.com/play/PLlGpFGXC9X...
LeetCode BiWeekly contest 77 | Count Unguarded Cells in the Grid
Переглядів 2,1 тис.2 роки тому
Best book for DSA revision before interviews: amzn.to/3sLMBzU solution to problem: ideone.com/dY4wSb problem link: leetcode.com/problems/count-unguarded-cells-in-the-grid/ All my playlists: DSA sheet: ua-cam.com/play/PLlGpFGXC9XnYOMturcfblGyym6wPGGvKF.html Interview experiences: ua-cam.com/play/PLlGpFGXC9XnbIG5jkAzV2IsWPG7a0adQy.html Leetcode problems: ua-cam.com/play/PLlGpFGXC9Xna36CAIr5x3VamS...
I got an Internship offer from Red Hat | My OFF campus experience | Software Engineering Intern
Переглядів 2,9 тис.2 роки тому
Best book for DSA revision before interviews: amzn.to/3sLMBzU Connect with me on LinkedIn: www.linkedin.com/in/aditya-rajiv-0606491a5/ If you like my problem solving skills, please do give me an endorsement in my skills sections on LinkedIn. All my playlists: DSA sheet: ua-cam.com/play/PLlGpFGXC9XnYOMturcfblGyym6wPGGvKF.html Interview experiences: ua-cam.com/play/PLlGpFGXC9XnbIG5jkAzV2IsWPG7a0a...
Removing Minimum and Maximum From Array | LeetCode Weekly contest 269 | DSA
Переглядів 3,2 тис.2 роки тому
problem link: leetcode.com/contest/weekly-contest-269/problems/removing-minimum-and-maximum-from-array/ solution: ideone.com/02310u All my playlists: DSA sheet: ua-cam.com/play/PLlGpFGXC9XnYOMturcfblGyym6wPGGvKF.html Interview experiences: ua-cam.com/play/PLlGpFGXC9XnbIG5jkAzV2IsWPG7a0adQy.html Leetcode problems: ua-cam.com/play/PLlGpFGXC9Xna36CAIr5x3VamSTwoqu5gu.html projects for resume: ua-ca...
K Radius Subarray Averages | LeetCode Weekly contest 269 | DSA
Переглядів 2,2 тис.2 роки тому
problem link: leetcode.com/contest/weekly-contest-269/problems/k-radius-subarray-averages/ solution: ideone.com/OHqsfG All my playlists: DSA sheet: ua-cam.com/play/PLlGpFGXC9XnYOMturcfblGyym6wPGGvKF.html Interview experiences: ua-cam.com/play/PLlGpFGXC9XnbIG5jkAzV2IsWPG7a0adQy.html Leetcode problems: ua-cam.com/play/PLlGpFGXC9Xna36CAIr5x3VamSTwoqu5gu.html projects for resume: ua-cam.com/play/PL...
Range Frequency Queries | LeetCode Weekly contest 268 | Most popular concept in CP
Переглядів 1,7 тис.2 роки тому
problem link: leetcode.com/contest/weekly-contest-268/problems/range-frequency-queries/ solution: ideone.com/9jTvv1 All my playlists: DSA sheet: ua-cam.com/play/PLlGpFGXC9XnYOMturcfblGyym6wPGGvKF.html Interview experiences: ua-cam.com/play/PLlGpFGXC9XnbIG5jkAzV2IsWPG7a0adQy.html Leetcode problems: ua-cam.com/play/PLlGpFGXC9Xna36CAIr5x3VamSTwoqu5gu.html projects for resume: ua-cam.com/play/PLlGp...
Vowels of All Substrings | LeetCode Weekly contest 266 | DSA
Переглядів 5 тис.2 роки тому
problem link: leetcode.com/contest/weekly-contest-266/problems/vowels-of-all-substrings/ solution: ideone.com/I1y5oB All my playlists: DSA sheet: ua-cam.com/play/PLlGpFGXC9XnYOMturcfblGyym6wPGGvKF.html Interview experiences: ua-cam.com/play/PLlGpFGXC9XnbIG5jkAzV2IsWPG7a0adQy.html Leetcode problems: ua-cam.com/play/PLlGpFGXC9Xna36CAIr5x3VamSTwoqu5gu.html projects for resume: ua-cam.com/play/PLlG...
Count Number of Maximum Bitwise-OR Subsets | LeetCode Weekly contest 263 | DSA
Переглядів 3,2 тис.3 роки тому
problem link: leetcode.com/contest/weekly-contest-263/problems/count-number-of-maximum-bitwise-or-subsets/ solution: ideone.com/ToRfgK All my playlists: DSA sheet: ua-cam.com/play/PLlGpFGXC9XnYOMturcfblGyym6wPGGvKF.html Interview experiences: ua-cam.com/play/PLlGpFGXC9XnbIG5jkAzV2IsWPG7a0adQy.html Leetcode problems: ua-cam.com/play/PLlGpFGXC9Xna36CAIr5x3VamSTwoqu5gu.html projects for resume: ua...
Topological sort | Graphs | Queue | Simple Implementation | Love Babbar DSA sheet
Переглядів 1,4 тис.3 роки тому
Please subscribe to newton school channel where i am an educator. studio.ua-cam.com/channels/nc3T8avaMrNheZIZmL5WBQ.html problem link: practice.geeksforgeeks.org/problems/topological-sort/1 solution: practice.geeksforgeeks.org/viewSol.php?subId=4b1f095b25a9bd4143c672f3757dbd85&pid=700255&user=adimantheboss123 All my playlists: DSA sheet: ua-cam.com/play/PLlGpFGXC9XnYOMturcfblGyym6wPGGvKF.html I...
M-Coloring Problem | Graphs | backtracking | simple solution | Love Babbar DSA sheet.
Переглядів 3,1 тис.3 роки тому
Please subscribe to newton school channel where i am an educator. studio.ua-cam.com/channels/nc3T8avaMrNheZIZmL5WBQ.html problem link: practice.geeksforgeeks.org/problems/m-coloring-problem-1587115620/1# solution: practice.geeksforgeeks.org/viewSol.php?subId=81236259c65bfa91bc033c0a36c54c47&pid=701374&user=adimantheboss123 All my playlists: DSA sheet: ua-cam.com/play/PLlGpFGXC9XnYOMturcfblGyym6...
Maximize the Confusion of an Exam | LeetCode Biweekly contest 62 | Did we do this before?
Переглядів 5 тис.3 роки тому
Please subscribe to newton school channel where i am an educator. studio.ua-cam.com/channels/nc3T8avaMrNheZIZmL5WBQ.html problem link: leetcode.com/contest/biweekly-contest-62/problems/maximize-the-confusion-of-an-exam/ solution: ideone.com/zAbt39 All my playlists: DSA sheet: ua-cam.com/play/PLlGpFGXC9XnYOMturcfblGyym6wPGGvKF.html Interview experiences: ua-cam.com/play/PLlGpFGXC9XnbIG5jkAzV2IsW...
Split Linked List in Parts | LeetCode | Linked List | Detailed solution |Data structures |Algorithms
Переглядів 7 тис.3 роки тому
Split Linked List in Parts | LeetCode | Linked List | Detailed solution |Data structures |Algorithms
Frequency of the Most Frequent Element | LeetCode | Binary search | Sliding window | Prefix sum |DSA
Переглядів 17 тис.3 роки тому
Frequency of the Most Frequent Element | LeetCode | Binary search | Sliding window | Prefix sum |DSA
Remove invalid parentheses | Hard Backtracking | Stacks | Optimization| Love Babbar DSA sheet |FAANG
Переглядів 6 тис.3 роки тому
Remove invalid parentheses | Hard Backtracking | Stacks | Optimization| Love Babbar DSA sheet |FAANG
Real life applications of Data structures and Algorithms | Why do you study DSA? | problem solving
Переглядів 8 тис.3 роки тому
Real life applications of Data structures and Algorithms | Why do you study DSA? | problem solving
Tug of war | Backtracking | Bitmasks | Love Babbar DSA sheet | LeetCode September challenge
Переглядів 3,6 тис.3 роки тому
Tug of war | Backtracking | Bitmasks | Love Babbar DSA sheet | LeetCode September challenge
The Knight’s tour problem | Backtracking | DFS | Love Babbar DSA sheet
Переглядів 14 тис.3 роки тому
The Knight’s tour problem | Backtracking | DFS | Love Babbar DSA sheet
Find shortest safe route in a path with landmines | Backtracking | DFS | Love Babbar DSA sheet
Переглядів 5 тис.3 роки тому
Find shortest safe route in a path with landmines | Backtracking | DFS | Love Babbar DSA sheet
Intersection of 2 arrays | LeetCode Challenge | Hashing | Two pointer | Arrays | DSA
Переглядів 1,3 тис.3 роки тому
Intersection of 2 arrays | LeetCode Challenge | Hashing | Two pointer | Arrays | DSA
Partition array into k equal sum subsets | Backtracking | Detailed solution | Love Babbar DSA sheet
Переглядів 9 тис.3 роки тому
Partition array into k equal sum subsets | Backtracking | Detailed solution | Love Babbar DSA sheet
Longest Possible Route in a Matrix with Hurdles | Backtracking | DFS | Love Babbar DSA sheet
Переглядів 2 тис.3 роки тому
Longest Possible Route in a Matrix with Hurdles | Backtracking | DFS | Love Babbar DSA sheet
Project 5: DSA project sorting visualizer PART 2 | projects for resume | creative projects
Переглядів 8 тис.3 роки тому
Project 5: DSA project sorting visualizer PART 2 | projects for resume | creative projects
Project 5: DSA project sorting visualizer PART 1(overview) | projects for resume | creative projects
Переглядів 17 тис.3 роки тому
Project 5: DSA project sorting visualizer PART 1(overview) | projects for resume | creative projects
Largest number with K swaps| Tricky | Backtracking | Detailed solution | Love Babbar DSA sheet
Переглядів 6 тис.3 роки тому
Largest number with K swaps| Tricky | Backtracking | Detailed solution | Love Babbar DSA sheet
Print all possible paths from top left to bottom right | Backtracking | Love Babbar DSA sheet
Переглядів 1,8 тис.3 роки тому
Print all possible paths from top left to bottom right | Backtracking | Love Babbar DSA sheet
Find Kth permutation of first N natural numbers | Backtracking | Recursion | Love Babbar DSA sheet
Переглядів 2,7 тис.3 роки тому
Find Kth permutation of first N natural numbers | Backtracking | Recursion | Love Babbar DSA sheet
broo what was that... crazyyy
Bro code chef certificate badge valid or not
Good explanation ❤
Great explanation !!
Thank You! Brother 18th Sept, 2024
this was my first video i ever watched of your channel n you already gained my sub, clean n neat explanation
Bad explanation
Sir ebook is missing from description
It seems like you are making lot of efforts to explain which is very good, but even there is something missing, you are creating simple things complicated,....just go in order na,..first tell the intuition and the logic, then the code and finally the dry run,..
I have also preparing for redhat internship as devops role … can you guide me regarding this
Thanks man , Understood
great explanation for this problem. this is a great combinatorics problem.
Solution is giving TLE, can you solve this using memoisation!!
pls send link of the book
good explanation in whole youtube
what is the intuition behind picking minumum and moving from minimum index ?
Just a Small Correction , for those who is getting wrong answer with this algorithm - After , s.erase(val) , we have to also clear this value from the map i.e (mp.erase(val)) , Or else our answer may be wrong . Thankyou!!
yes
That `num - 1` intuition was the hardest part for me
When you applied, please reply
Dp approach doesn't get submitted because NlogN is the constraints
Brilliant 😊😊😊, just subscribed 🎉
to convince ourselt to use merge sort !!! hell yeah brother I support you for the honestly im gonna watch you videos only for the honesty!!!!!!! because i was't really confused of how things arise in brain your honest made me feel i am not alone thanksssss!!!!!!!!!!!! a lot
Nicely explained👏
Thanks a lot
nice
This video is more helpful sir thank you. Actually I easy to understood in your way
great logical thinking👍
Thanks a lot
Great video!!!
Thank you so much bhaiya ❤❤
can you provide the source code for this pls
Not for beginners 💀☠️
We can simply Think like a DFS approach. Explore all the possible ways.
which book is mentioned in the description...the amazon link is not working
Thanks a lot bhai
great explanation bro
Thanks bro .. your explanation is just amazing . I did not aware of dp but even I understood this solution and even tried dry run and solved the question. Thank you
sir at 13:52 you mentioned that 2 has significance that it it mentioning the numbers that will come onto left after sorting, but that's wrong and not true for every element, reason why 6 has 1 as answer, it mentions number of smaller elements present on right side before sorting
i think we are moving minimum because at LeetCode We define the range [a, b] is smaller than range [c, d] if b - a < d - c or a < c if b - a == d - c. hence starting from minimum give correct answer
cant we do this using two pointers approach?
which college were u from bro??
ua-cam.com/video/3qN3bonkCG4/v-deo.html How It is possible because, if we return on first line then second will never been executed
Anaconda Spyder se run kiye to Module not found dikha rha h bhaiya
nice video
samjhana hai bhai, padhna nhi h bs
thank for your effort!
I don't get the second case of dn-1 when I think about it its tells me that it should be dn-3 cause if (a) gets i hat and i didn't get (a) then then we have a and i and another one who will get (a) hat so we fixed 3
Video starts at 03:25. Thank me later also put the video to 2x.
keep making video one of the best video for sliding window
can you please mention(problems links) which all other questions are based on this same approach ?