Aditya Rajiv
Aditya Rajiv
  • 323
  • 998 329
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
Переглядів: 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

КОМЕНТАРІ

  • @saumyaagarwal7
    @saumyaagarwal7 2 дні тому

    broo what was that... crazyyy

  • @MOUNIKAPASUPULETI-s6p
    @MOUNIKAPASUPULETI-s6p 16 днів тому

    Bro code chef certificate badge valid or not

  • @rajendertanwar1881
    @rajendertanwar1881 23 дні тому

    Good explanation ❤

  • @gaurimandot5788
    @gaurimandot5788 25 днів тому

    Great explanation !!

  • @heyOrca2711
    @heyOrca2711 Місяць тому

    Thank You! Brother 18th Sept, 2024

  • @SurajG-ul4xq
    @SurajG-ul4xq Місяць тому

    this was my first video i ever watched of your channel n you already gained my sub, clean n neat explanation

  • @manannagpal2822
    @manannagpal2822 Місяць тому

    Bad explanation

  • @vineetkumarmotwani474
    @vineetkumarmotwani474 Місяць тому

    Sir ebook is missing from description

  • @AayushTayalBCH
    @AayushTayalBCH Місяць тому

    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,..

  • @amandewani8391
    @amandewani8391 Місяць тому

    I have also preparing for redhat internship as devops role … can you guide me regarding this

  • @iamnoob7593
    @iamnoob7593 Місяць тому

    Thanks man , Understood

  • @ashwinjain5566
    @ashwinjain5566 2 місяці тому

    great explanation for this problem. this is a great combinatorics problem.

  • @sumitverma7439
    @sumitverma7439 2 місяці тому

    Solution is giving TLE, can you solve this using memoisation!!

  • @Caroline-up8qw
    @Caroline-up8qw 2 місяці тому

    pls send link of the book

  • @AyushGarg-r5r
    @AyushGarg-r5r 2 місяці тому

    good explanation in whole youtube

  • @rushio8673
    @rushio8673 2 місяці тому

    what is the intuition behind picking minumum and moving from minimum index ?

  • @thesoftwareguy2183
    @thesoftwareguy2183 2 місяці тому

    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!!

  • @AnkitaNallana
    @AnkitaNallana 2 місяці тому

    That `num - 1` intuition was the hardest part for me

  • @ManavVerma-f2t
    @ManavVerma-f2t 2 місяці тому

    When you applied, please reply

  • @sudeepgupta5104
    @sudeepgupta5104 2 місяці тому

    Dp approach doesn't get submitted because NlogN is the constraints

  • @shachisinghal8856
    @shachisinghal8856 2 місяці тому

    Brilliant 😊😊😊, just subscribed 🎉

  • @johnj171
    @johnj171 3 місяці тому

    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

  • @AnuragGupta-ov8dz
    @AnuragGupta-ov8dz 3 місяці тому

    Nicely explained👏

  • @technologybaba192
    @technologybaba192 3 місяці тому

    Thanks a lot

  • @NiteshYadavnitw
    @NiteshYadavnitw 3 місяці тому

    nice

  • @SonithKumar25
    @SonithKumar25 3 місяці тому

    This video is more helpful sir thank you. Actually I easy to understood in your way

  • @akshadgupta3925
    @akshadgupta3925 3 місяці тому

    great logical thinking👍

  • @gauravbanerjee2898
    @gauravbanerjee2898 3 місяці тому

    Thanks a lot

  • @harshvachhani4922
    @harshvachhani4922 3 місяці тому

    Great video!!!

  • @gauravbanerjee2898
    @gauravbanerjee2898 3 місяці тому

    Thank you so much bhaiya ❤❤

  • @AMANPASWAN-ns9fe
    @AMANPASWAN-ns9fe 4 місяці тому

    can you provide the source code for this pls

  • @sohan_here
    @sohan_here 4 місяці тому

    Not for beginners 💀☠️

  • @09avishkargaikwad71
    @09avishkargaikwad71 4 місяці тому

    We can simply Think like a DFS approach. Explore all the possible ways.

  • @BeingShortlyApt
    @BeingShortlyApt 4 місяці тому

    which book is mentioned in the description...the amazon link is not working

  • @gauravbanerjee2898
    @gauravbanerjee2898 4 місяці тому

    Thanks a lot bhai

  • @donno2423
    @donno2423 4 місяці тому

    great explanation bro

  • @webmovie6078
    @webmovie6078 5 місяців тому

    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

  • @vattiyeshwanth282
    @vattiyeshwanth282 5 місяців тому

    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

  • @sj_4038
    @sj_4038 5 місяців тому

    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

  • @aditimahabole1761
    @aditimahabole1761 5 місяців тому

    cant we do this using two pointers approach?

  • @jitendrakumar-vv8ho
    @jitendrakumar-vv8ho 5 місяців тому

    which college were u from bro??

  • @HimanshuBhole-q1z
    @HimanshuBhole-q1z 5 місяців тому

    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

  • @Coding_Projects_Urwar
    @Coding_Projects_Urwar 6 місяців тому

    Anaconda Spyder se run kiye to Module not found dikha rha h bhaiya

  • @impatientgaming9868
    @impatientgaming9868 6 місяців тому

    nice video

  • @aarchijain5090
    @aarchijain5090 6 місяців тому

    samjhana hai bhai, padhna nhi h bs

  • @LinhHoang-ml1qo
    @LinhHoang-ml1qo 7 місяців тому

    thank for your effort!

  • @mowafkmha4505
    @mowafkmha4505 7 місяців тому

    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

  • @rajatmaurya6401
    @rajatmaurya6401 7 місяців тому

    Video starts at 03:25. Thank me later also put the video to 2x.

  • @JAYAPUSHPAMV
    @JAYAPUSHPAMV 7 місяців тому

    keep making video one of the best video for sliding window

  • @umeshkaushik710
    @umeshkaushik710 8 місяців тому

    can you please mention(problems links) which all other questions are based on this same approach ?