Anubhav Sharma
Anubhav Sharma
  • Видео 44
  • Просмотров 7 030
Longest Square Streak in an Array | Leetcode 2501 | Sorting | Hashing
Problem Link - leetcode.com/problems/longest-square-streak-in-an-array
Company Tags - Will update later
Solution -
0:00 Problem Understanding
╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝
#coding #leetcode #leetcodechallenge #leetcodesolution #interview_ds_algo #github #design #google #video #instagram #facebook #coding #helpajobseeker #leetcode #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #india #coding #helpajobseeker #leetcodequestionandanswers #leetcodesolution #leetcodedailychallenge #leetcodequestions #leetcodechallenge #english #india #easyexplaination #interview #interviewtips #interviewprepa...
Просмотров: 53

Видео

Count Square Submatrices with All Ones | Leetcode 1277 | Recursion | DP
Просмотров 352 часа назад
Problem Link - leetcode.com/problems/count-square-submatrices-with-all-ones Company Tags - Will update later Solution - github.com/anubhvshrma18/LeetCode-Solutions/blob/main/1277. Count Square Submatrices with All Ones.cpp 0:00 Problem Understanding ╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗ ║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣ ╠╗║╚╝║║╠╗║╚╣║║║║║═╣ ╚═╩══╩═╩═╩═╩╝╚╩═╩═╝ #coding #leetcode #leetcodechallenge #leetcodesolution #interview_d...
Remove Sub-Folders from the Filesystem | Leetcode 1233 | String | Sorting
Просмотров 774 часа назад
Problem Link - leetcode.com/problems/remove-sub-folders-from-the-filesystem Company Tags - Will update later Solution - github.com/anubhvshrma18/LeetCode-Solutions/blob/main/1233. Remove Sub-Folders from the Filesystem.cpp 0:00 Problem Understanding ╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗ ║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣ ╠╗║╚╝║║╠╗║╚╣║║║║║═╣ ╚═╩══╩═╩═╩═╩╝╚╩═╩═╝ #coding #leetcode #leetcodechallenge #leetcodesolution #interview_d...
Flip Equivalent Binary Trees | Leetcode 951 | Binary Tree | DFS | Explanation + Coding
Просмотров 959 часов назад
Problem Link - leetcode.com/problems/flip-equivalent-binary-trees Company Tags - Will update later Solution - github.com/anubhvshrma18/LeetCode-Solutions/blob/main/951. Flip Equivalent Binary Trees.cpp 0:00 Problem Understanding ╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗ ║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣ ╠╗║╚╝║║╠╗║╚╣║║║║║═╣ ╚═╩══╩═╩═╩═╩╝╚╩═╩═╝ #coding #leetcode #leetcodechallenge #leetcodesolution #interview_ds_algo #github #desig...
Cousins of Binary Tree II | Leetcode 2641 | Binary Tree | BFS
Просмотров 18112 часов назад
Problem Link - leetcode.com/problems/cousins-in-binary-tree-ii Company Tags - Will update later Solution - github.com/anubhvshrma18/LeetCode-Solutions/blob/main/2641. Cousins of Binary Tree II.cpp 0:00 Problem Understanding ╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗ ║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣ ╠╗║╚╝║║╠╗║╚╣║║║║║═╣ ╚═╩══╩═╩═╩═╩╝╚╩═╩═╝ #coding #leetcode #leetcodechallenge #leetcodesolution #interview_ds_algo #github #design #go...
Kth Largest Sum in a Binary Tree | Leetcode 2583 | Tree | Heap | Sorting
Просмотров 19814 часов назад
Problem Link - leetcode.com/problems/kth-largest-sum-in-a-binary-tree/ Company Tags - Will update later Solution - github.com/anubhvshrma18/LeetCode-Solutions/blob/main/2583. Kth Largest Sum in a Binary Tree.cpp 0:00 Problem Understanding ╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗ ║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣ ╠╗║╚╝║║╠╗║╚╣║║║║║═╣ ╚═╩══╩═╩═╩═╩╝╚╩═╩═╝ #coding #leetcode #leetcodechallenge #leetcodesolution #interview_ds_algo #git...
Split a String Into the Max Number of Unique Substrings | Leetcode 1593 | Backtracking Intuition
Просмотров 29116 часов назад
Problem Link - leetcode.com/problems/split-a-string-into-the-max-number-of-unique-substrings/ Company Tags - Will update later Solution - github.com/anubhvshrma18/LeetCode-Solutions/blob/main/1593. Split a String Into the Max Number of Unique Substrings.cpp 0:00 Problem Understanding 2.07 Intuition Building 22:25 Coding Backtracking Solution ╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗ ║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣ ╠╗║╚╝║║╠╗║╚╣║...
Maximum Swap | Leetcode 670 | Array and Strings | Greedy | Explanation+Coding
Просмотров 214День назад
Problem - leetcode.com/problems/maximum-swap Company Tags - Will update later Solution - github.com/anubhvshrma18/LeetCode-Solutions/blob/main/670. Maximum Swap.cpp 0:00 Problem Understanding ╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗ ║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣ ╠╗║╚╝║║╠╗║╚╣║║║║║═╣ ╚═╩══╩═╩═╩═╩╝╚╩═╩═╝ #coding #leetcode #leetcodechallenge #leetcodesolution #interview_ds_algo #github #design #google #video #instagram #facebook...
Longest Happy String | Leetcode 1405 | Max Heap | Explanation+Live Coding
Просмотров 335День назад
Problem - leetcode.com/problems/longest-happy-string Company Tags - Will Update Later Solution - github.com/anubhvshrma18/LeetCode-Solutions/blob/main/1405. Longest Happy String.cpp 0:00 Problem Understanding ╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗ ║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣ ╠╗║╚╝║║╠╗║╚╣║║║║║═╣ ╚═╩══╩═╩═╩═╩╝╚╩═╩═╝ #coding #leetcode #leetcodechallenge #leetcodesolution #interview_ds_algo #github #design #google #video #in...
Separate Black and White Balls | Leetcode 2938 | Multiple Approaches
Просмотров 311День назад
Problem - leetcode.com/problems/separate-black-and-white-balls/submissions/ Solution - github.com/anubhvshrma18/LeetCode-Solutions/blob/main/2938. Separate Black and White Balls.cpp 0:00 Problem Understanding ╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗ ║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣ ╠╗║╚╝║║╠╗║╚╣║║║║║═╣ ╚═╩══╩═╩═╩═╩╝╚╩═╩═╝ #coding #leetcode #leetcodechallenge #leetcodesolution #interview_ds_algo #github #design #google #video #in...
Maximal Score After Applying K Operations | Leetcode 2530 | Heap
Просмотров 14514 дней назад
Problem - leetcode.com/problems/smallest-range-covering-elements-from-k-lists Stack-overflow Article - stackoverflow.com/questions/9755721/how-can-building-a-heap-be-on-time-complexity Solution Link - github.com/anubhvshrma18/LeetCode-Solutions/blob/main/2530. Maximal Score After Applying K Operations.cpp 0:00 Problem Understanding 1:17 Intuition Logic Building 12:01 Coding Solution ╔═╦╗╔╦╗╔═╦═...
Smallest Range Covering Elements from K Lists | Leetcode 632 | Heap
Просмотров 31114 дней назад
Problem - leetcode.com/problems/smallest-range-covering-elements-from-k-lists Solution Link - github.com/anubhvshrma18/LeetCode-Solutions/blob/main/632. Smallest Range Covering Elements from K Lists.cpp 0:00 Problem Understanding 1:22 Intuition Logic Building O (NLogK) 21:56 Coding Solution ╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗ ║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣ ╠╗║╚╝║║╠╗║╚╣║║║║║═╣ ╚═╩══╩═╩═╩═╩╝╚╩═╩═╝ #coding #leetcode #leetco...
Divide Intervals Into Minimum Number of Groups | Leetcode 2406 | Optimal+Bonus | Explanation+Coding
Просмотров 73714 дней назад
Provided the Bonus solution code in the Github link below, please check it out. Problem - leetcode.com/problems/divide-intervals-into-minimum-number-of-groups/ Solution Link - github.com/anubhvshrma18/LeetCode-Solutions/blob/main/2406. Divide Intervals Into Minimum Number of Groups.cpp 0:00 Problem Understanding 1:31 Intuition Building - O (N*LogN) 18:02 Coding Solution - O (N*LogN) 26:44 Bonus...
The Number of the Smallest Unoccupied Chair | Leetcode 1942 | Two Approaches | Explanation+Coding
Просмотров 21914 дней назад
Hi Everyone, apologies for uploading the video so late. The video seems to very big but I have provided the timestamps below, so in case you want to understand optimal solution, you can directly skip to that part. Problem - leetcode.com/problems/the-number-of-the-smallest-unoccupied-chair Solution Link - github.com/anubhvshrma18/LeetCode-Solutions/blob/main/1942. The Number of the Smallest Unoc...
Maximum Width Ramp | Leetcode 962 | Amazon | Microsoft | Brute-Better-Optimal Solution + Live Coding
Просмотров 47514 дней назад
Problem - leetcode.com/problems/maximum-width-ramp Solution Link - github.com/anubhvshrma18/LeetCode-Solutions/blob/main/962. Maximum Width Ramp.cpp 0:00 Problem Understanding 1:04 Intuition Logic building 34:37 Coding O(N) Solution ╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗ ║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣ ╠╗║╚╝║║╠╗║╚╣║║║║║═╣ ╚═╩══╩═╩═╩═╩╝╚╩═╩═╝ #coding #leetcode #leetcodechallenge #leetcodesolution #interview_ds_algo #github #d...
Minimum Add to Make Parentheses Valid | LeetCode 921 | Facebook | Explanation + Live Coding
Просмотров 18514 дней назад
Minimum Add to Make Parentheses Valid | LeetCode 921 | Facebook | Explanation Live Coding
Minimum Number of Swaps to Make the String Balanced | Leetcode 1963 | Google | Amazon | O(1) Space
Просмотров 12214 дней назад
Minimum Number of Swaps to Make the String Balanced | Leetcode 1963 | Google | Amazon | O(1) Space
Guess Number Higher or Lower | Leetcode 374 | Google | Microsoft | Binary Search Full Explanation
Просмотров 7314 дней назад
Guess Number Higher or Lower | Leetcode 374 | Google | Microsoft | Binary Search Full Explanation
Equal Row and Column Pairs | Leetcode 2352 | Google | Microsoft | Two Approaches
Просмотров 8921 день назад
Equal Row and Column Pairs | Leetcode 2352 | Google | Microsoft | Two Approaches
Determine If Two Strings Are Close | Leetcode 1657 | Google | Adobe | Explanation+Coding
Просмотров 13421 день назад
Determine If Two Strings Are Close | Leetcode 1657 | Google | Adobe | Explanation Coding
Unique Number of Occurrences | Leetcode 1207 | Two Ways | Amazon | Google | Explanation+Live Coding
Просмотров 5821 день назад
Unique Number of Occurrences | Leetcode 1207 | Two Ways | Amazon | Google | Explanation Live Coding
Find the Difference of Two Arrays | Leetcode 2215 | Amazon | Adobe| Explanation with Live Coding
Просмотров 11321 день назад
Find the Difference of Two Arrays | Leetcode 2215 | Amazon | Adobe| Explanation with Live Coding
Find Pivot Index | Leetcode 724 | LinkedIn | Facebook | Two Approaches | C++
Просмотров 9421 день назад
Find Pivot Index | Leetcode 724 | LinkedIn | Facebook | Two Approaches | C
Find the Highest Altitude | Leetcode 1732 | Adobe | Apple | Google | Prefix Sum
Просмотров 102Месяц назад
Find the Highest Altitude | Leetcode 1732 | Adobe | Apple | Google | Prefix Sum
Longest Subarray of 1's After Deleting One Element | Leetcode 1493 | Multiple Approaches | Google
Просмотров 86Месяц назад
Longest Subarray of 1's After Deleting One Element | Leetcode 1493 | Multiple Approaches | Google
Max Consecutive Ones III | Leetcode 1004 | Multiple Approaches | Google | Facebook | Sliding Window
Просмотров 105Месяц назад
Max Consecutive Ones III | Leetcode 1004 | Multiple Approaches | Google | Facebook | Sliding Window
Maximum Number of Vowels in a Substring of Given Length | Leetcode 1456 | Microsoft | Sliding Window
Просмотров 67Месяц назад
Maximum Number of Vowels in a Substring of Given Length | Leetcode 1456 | Microsoft | Sliding Window
Maximum Average Subarray I | Leetcode 643 | C++ | Amazon | Adobe | Apple | Sliding Window
Просмотров 126Месяц назад
Maximum Average Subarray I | Leetcode 643 | C | Amazon | Adobe | Apple | Sliding Window
Max Number of K Sum Pairs | Leetcode 1679 | Multiple Approaches | C++ | Amazon | Google | Apple
Просмотров 161Месяц назад
Max Number of K Sum Pairs | Leetcode 1679 | Multiple Approaches | C | Amazon | Google | Apple
Container with Most Water | LeetCode 11 | C++ | Amazon | Meta | Google
Просмотров 284Месяц назад
Container with Most Water | LeetCode 11 | C | Amazon | Meta | Google

Комментарии

  • @COC-ys5ir
    @COC-ys5ir 8 часов назад

    ty for the visualisation of dp

  • @Satya-g5t
    @Satya-g5t 5 дней назад

    Clean elegant solution, explained calmly, how come this channel has less subscribers? see, sometimes deserving people like yourself and good things don't get their due recognition, but eventually the world will acknowledge, keep making more such videos.

    • @anubhavsharmaaofficial
      @anubhavsharmaaofficial 5 дней назад

      Thanks for the support Satya 👍❤️. I believe that you just do your deeds and believe in god and he surely have planned something good for you.🙏

  • @thundergaming4004
    @thundergaming4004 7 дней назад

    Good explanation!! Keep it up your efforts matter to us.

  • @ShivamUchiha
    @ShivamUchiha 11 дней назад

    thank u soo much, u explained very well

  • @Satya-g5t
    @Satya-g5t 12 дней назад

    very patiently and well explained. keep uploading more videos. 😀.

  • @harshaha1719
    @harshaha1719 12 дней назад

    Super bro

  • @AmanKumar-fd5ec
    @AmanKumar-fd5ec 17 дней назад

    👍

  • @kalyanamchakrawarty5093
    @kalyanamchakrawarty5093 24 дня назад

    Can you bring questions related upper bound and lower bound ?

  • @bilaledits5513
    @bilaledits5513 Месяц назад

    apna college walaquestion hei yeh?

    • @anubhavsharmaaofficial
      @anubhavsharmaaofficial Месяц назад

      I am not sure about Apna College. This is an important question from DSA interview perspective and asked in FAANG also. I have prepared other important questions . You can find it in Leetcode 75 Playlist on my channel.

  • @Cosmos-s3x
    @Cosmos-s3x Месяц назад

    Thanx bro