Bharath Chandra (తెలుగు)
Bharath Chandra (తెలుగు)
  • 50
  • 175 594
Sliding Window Maximum(LeetCode 239) | Neetcode 20 / 150 | Bharath Chandra (Telugu)
Hello guys, cheers to another piece of learning. Today I talked about the "Trapping Rain Water" problem which is the first in Neetcode 150 list. It is one of the most asked questions in interviews and has some interesting ways to solve it.
In the above video, I showed all the different logics with which the problem can be solved and also the pseudocodes. Let me know if you got a hold of the logic?
Link to Two Pointer video - ua-cam.com/video/ckTmoJjP5DQ/v-deo.html
Link to the problem - leetcode.com/problems/sliding-window-maximum/description/
Link to Neetcode 150 - neetcode.io/practice=
Regular updates from me on Discord, Insta and Telegram. I post job notifications of telegram and discord
Insta - bharathh_chandraa
Telegram - t.me/thebharathchandra
Discord - discord.gg/tvFcRtEPZK
LinkedIn - www.linkedin.com/in/lokesh-bharath-chandra-putnam/
0:00 - Introduction
1:03 - Problem Statement
3:15 - Brute Force Algorithm
6:46 - Brute Force Pseudocode
8:58 - Algorithm Using Map
18:58 - Pseudocode using map
21:37 - Algorithm Using Deque
33:28 - Pseudocode using Deque
Переглядів: 316

Відео

Sliding Window Maximum(LeetCode 3) | Neetcode 19 / 150 | Bharath Chandra
Переглядів 268День тому
Hello guys, cheers to another piece of learning. Today I talked about the "Sliding Window Maximum" problem which is the first in Neetcode 150 list. It is one of the most asked questions in interviews and has some interesting ways to solve it. In the above video, I showed all the different logics with which the problem can be solved and also the pseudocodes. Let me know if you got a hold of the ...
Permutation in String (LeetCode 567) | Neetcode 18 / 150 | Bharath Chandra
Переглядів 38514 днів тому
Hello guys, cheers to another piece of learning. Today I talked about the "Permutation in String" problem which is the first in Neetcode 150 list. It is one of the most asked questions in interviews and has some interesting ways to solve it. In the above video, I showed all the different logics with which the problem can be solved and also the pseudocodes. Let me know if you got a hold of the l...
Longest Repeating Character Replacement(LeetCode 424) | Neetcode 17 / 150 | Bharath Chandra
Переглядів 68521 день тому
Hello guys, cheers to another piece of learning. Today I talked about the “Longest Repeating Character Replacement" problem which is the seventeenth in Neetcode 150 list. It is one of the most asked questions in interviews and has some interesting ways to solve it. In the above video, I showed all the different logics with which the problem can be solved and also the pseudocodes. Let me know if...
Longest Substring Without Repeating Characters(LeetCode 3) | Neetcode 16 / 150 | Bharath Chandra
Переглядів 3,1 тис.5 місяців тому
Hello guys, cheers to another piece of learning. Today I talked about the "Container With Most Water" problem which is the first in Neetcode 150 list. It is one of the most asked questions in interviews and has some interesting ways to solve it. In the above video, I showed all the different logics with which the problem can be solved and also the pseudocodes. Let me know if you got a hold of t...
Best Time to Buy and Sell Stock(LeetCode 121) | Neetcode 15 / 150 | Bharath Chandra (Telugu)
Переглядів 1,3 тис.5 місяців тому
Hello guys, cheers to another piece of learning. Today I talked about the "Best Time to Buy and Sell Stock" problem which is the first in Neetcode 150 list. It is one of the most asked questions in interviews and has some interesting ways to solve it. In the above video, I showed all the different logics with which the problem can be solved and also the pseudocodes. Let me know if you got a hol...
Trapping Rain Water(LeetCode 42) | Neetcode 14 / 150 | Bharath Chandra (Telugu)
Переглядів 1,1 тис.5 місяців тому
Hello guys, cheers to another piece of learning. Today I talked about the "Trapping Rain Water" problem which is the first in Neetcode 150 list. It is one of the most asked questions in interviews and has some interesting ways to solve it. In the above video, I showed all the different logics with which the problem can be solved and also the pseudocodes. Let me know if you got a hold of the log...
Container With Most Water(LeetCode 11) | Neetcode 13 / 150 | Bharath Chandra (Telugu)
Переглядів 1,8 тис.5 місяців тому
Hello guys, cheers to another piece of learning. Today I talked about the "Container With Most Water" problem which is the first in Neetcode 150 list. It is one of the most asked questions in interviews and has some interesting ways to solve it. In the above video, I showed all the different logics with which the problem can be solved and also the pseudocodes. Let me know if you got a hold of t...
3Sum Problem and Solution(LeetCode 15) | Neetcode 12 / 150 | Bharath Chandra (Telugu)
Переглядів 1,7 тис.5 місяців тому
Hello guys, cheers to another piece of learning. Today I talked about the "3Sum Problem" problem which is the first in Neetcode 150 list. It is one of the most asked questions in interviews and has some interesting ways to solve it. In the above video, I showed all the different logics with which the problem can be solved and also the codes to those logics in Python. Let me know if you got a ho...
Two Sum II - Input Array Is Sorted (LeetCode 167) | Neetcode 11 / 150 | Bharath Chandra (Telugu)
Переглядів 1,2 тис.6 місяців тому
Hello guys, cheers to another piece of learning. Today I talked about the "Two Sum II - Input Array Is Sorted" problem which is the first in Neetcode 150 list. It is one of the most asked questions in interviews and has some interesting ways to solve it. In the above video, I showed all the different logics with which the problem can be solved and also the codes to those logics in Python. Let m...
Valid Palindrome (LeetCode 125) | Neetcode 10 / 150 | Bharath Chandra (Telugu)
Переглядів 1,5 тис.6 місяців тому
Hello guys, cheers to another piece of learning. Today I talked about the "Valid Palindrome" problem which is the first in Neetcode 150 list. It is one of the most asked questions in interviews and has some interesting ways to solve it. In the above video, I showed all the different logics with which the problem can be solved and also the codes to those logics in Python. Let me know if you got ...
Longest Consecutive Sequence (LeetCode 128) | Neetcode 9/ 150 | Bharath Chandra (Telugu)
Переглядів 2,1 тис.6 місяців тому
Hello guys, cheers to another piece of learning. Today I talked about the "Longest Consecutive Sequence" problem which is the first in Neetcode 150 list. It is one of the most asked questions in interviews and has some interesting ways to solve it. In the above video, I showed all the different logics with which the problem can be solved and also the codes to those logics in Python. Let me know...
Valid Sudoku (LeetCode 36) | Neetcode 8 / 150 | Bharath Chandra (Telugu)
Переглядів 2,6 тис.6 місяців тому
Hello guys, cheers to another piece of learning. Today I talked about the "Valid Sudoku" problem which is the first in Neetcode 150 list. It is one of the most asked questions in interviews and has some interesting ways to solve it. In the above video, I showed all the different logics with which the problem can be solved and also the codes to those logics in Python. Let me know if you got a ho...
Product of array except self (LeetCode 238) | Neetcode 7 / 150 | Bharath Chandra (Telugu)
Переглядів 2,1 тис.6 місяців тому
Hello guys, cheers to another piece of learning. Today I talked about the "Product of array except self" problem which is the first in Neetcode 150 list. It is one of the most asked questions in interviews and has some interesting ways to solve it. In the above video, I showed all the different logics with which the problem can be solved and also the codes to those logics in Python. Let me know...
Prefix Sum Arrays| Problem Solving| Subarrays | Bharath Chandra
Переглядів 1,5 тис.6 місяців тому
Hello guys, cheers to another piece of learning. Today I talked why we use Prefix Sum Arrays! Why do we need them when we have them? And I also discussed the ideation behind using them in strings problems. Link to Video on HashMaps - ua-cam.com/video/ckTmoJjP5DQ/v-deo.html This video is a part of Neetcode 150 playlist on my channel Link to Neetcode 150 Playlist - ua-cam.com/play/PLq57tMwpU41ZZy...
String Encode and Decode (LeetCode 271) | Neetcode 6 / 150 | Bharath Chandra (Telugu)
Переглядів 1,5 тис.6 місяців тому
String Encode and Decode (LeetCode 271) | Neetcode 6 / 150 | Bharath Chandra (Telugu)
Top K Frequent Elements (LeetCode 347) | Neetcode 5/ 150 | Bharath Chandra (తెలుగు)
Переглядів 2,3 тис.6 місяців тому
Top K Frequent Elements (LeetCode 347) | Neetcode 5/ 150 | Bharath Chandra (తెలుగు)
Time Complexity and Space Complexity in Telugu | Big O notation for interviews | Bharath Chandra
Переглядів 22 тис.6 місяців тому
Time Complexity and Space Complexity in Telugu | Big O notation for interviews | Bharath Chandra
Group Anagrams (LeetCode 49) | Neetcode 4/ 150 | Bharath Chandra (తెలుగు)
Переглядів 1,5 тис.6 місяців тому
Group Anagrams (LeetCode 49) | Neetcode 4/ 150 | Bharath Chandra (తెలుగు)
CountArrays and CountSort | Strings | Problem Solving| CountArrays vs HashMaps| Bharath Chandra
Переглядів 1,5 тис.6 місяців тому
CountArrays and CountSort | Strings | Problem Solving| CountArrays vs HashMaps| Bharath Chandra
Two Sum (LeetCode 1) | Neetcode 3 / 150 | Bharath Chandra (తెలుగు)
Переглядів 2,2 тис.6 місяців тому
Two Sum (LeetCode 1) | Neetcode 3 / 150 | Bharath Chandra (తెలుగు)
2 - Pointer Algorithm All Models | Intuition and Problem Solving | Bharath Chandra
Переглядів 4,2 тис.6 місяців тому
2 - Pointer Algorithm All Models | Intuition and Problem Solving | Bharath Chandra
Hashsets and HashMaps | Why and where do we use them in problems | Bharath Chandra
Переглядів 5 тис.6 місяців тому
Hashsets and HashMaps | Why and where do we use them in problems | Bharath Chandra
Valid Anagram (LeetCode 242) | Neetcode 2 / 150 | Bharath Chandra (తెలుగు)
Переглядів 2,7 тис.6 місяців тому
Valid Anagram (LeetCode 242) | Neetcode 2 / 150 | Bharath Chandra (తెలుగు)
Contains Duplicate (LeetCode 217) | Neetcode 1/ 150 | Bharath Chandra (తెలుగు)
Переглядів 3,9 тис.6 місяців тому
Contains Duplicate (LeetCode 217) | Neetcode 1/ 150 | Bharath Chandra (తెలుగు)
Leetocde Extensions
Переглядів 9858 місяців тому
Leetocde Extensions
What is DSA? And Why should you learn it? #dsaroadmap #beginners
Переглядів 31 тис.10 місяців тому
What is DSA? And Why should you learn it? #dsaroadmap #beginners
My Amazon Interview Experience and 3 Takeaways
Переглядів 6 тис.Рік тому
My Amazon Interview Experience and 3 Takeaways
Crack the Code with MassCoders | Bharath Chandra
Переглядів 10 тис.Рік тому
Crack the Code with MassCoders | Bharath Chandra
How computers store photos, movies, and songs?
Переглядів 2,1 тис.Рік тому
How computers store photos, movies, and songs?

КОМЕНТАРІ

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

    WoW

  • @Puneeth-sai
    @Puneeth-sai 2 дні тому

    Super explanation anna😊

  • @manojkumarparuchuri5920
    @manojkumarparuchuri5920 3 дні тому

    Nice video bro

  • @manojkumarparuchuri5920
    @manojkumarparuchuri5920 3 дні тому

    Nice video bro

  • @karthiksurvepalli5695
    @karthiksurvepalli5695 3 дні тому

    I subscribed ,good !on new year day u doing coding , no one can stop you ! Keep it up !!

    • @bharathh_chandraa
      @bharathh_chandraa 3 дні тому

      Thank you! Sharing your knowledge 8 years ago on youtube was not at all common. Kudos to you!

  • @chillgamergkr317
    @chillgamergkr317 4 дні тому

    Nice explanation

  • @chillgamergkr317
    @chillgamergkr317 4 дні тому

    import java.util.*; class telugu{ public static int Replacement(String s,int k){ HashMap<Character,Integer> hm =new HashMap<>(); int l=0; int maxF=0; int maxL=0; for(int r=0;r<s.length();r++){ char ch=s.charAt(r); hm.put(ch,hm.getOrDefault(ch, 0)+1); maxF=Math.max(hm.get(ch),maxF); if(r-l+1-maxF<=k){ maxL=r-l+1; }else{ while((r-l+1)-maxF>k){ char ch1 =s.charAt(l); hm.put(ch1,hm.getOrDefault(ch1,0)-1); if(hm.get(ch1)==0){ hm.remove(ch1); } l++; } } } return maxL; } public static void main(String[] args){ String s="ABAA"; int k=0; System.out.println(Replacement(s, k)); } } solution in java

    • @bharathh_chandraa
      @bharathh_chandraa 4 дні тому

      Thank you for typing the code here! Migitha vallaki help avtadi🙌🏻

  • @chillgamergkr317
    @chillgamergkr317 4 дні тому

    Wonderful explanation the way you are explaining 😎🤏 fantastic keep going

  • @kalyanamephraim4393
    @kalyanamephraim4393 4 дні тому

    Do not stop this series

  • @suryapavan6986
    @suryapavan6986 5 днів тому

    Excellent explanation❤❤❤

  • @ram8055-x6n
    @ram8055-x6n 5 днів тому

    anna miru different approaches vadthunnaru and vatiki code kuda chupinchi oka 1 min explanation isthe chala bavuntadhi and useful untdhi anna.

  • @programming8187
    @programming8187 5 днів тому

  • @ReshmaVaddikanchari
    @ReshmaVaddikanchari 6 днів тому

    broo order to patu bytes lo kuda cheppandiii

  • @TheOptimus54
    @TheOptimus54 6 днів тому

    Thankyou for the content, looks amazing. Is it possible to share java example of model-2 approach (moving of first and last pointers to right by cleverly eliminating elements)?

    • @bharathh_chandraa
      @bharathh_chandraa 6 днів тому

      All the recent videos posted on this playlist are covering this exact topic. You'll for sure get clarity if you refer Minimum Window Problem or the one before that!

  • @devfusion-8718
    @devfusion-8718 6 днів тому

    Brute Force : int main() { string s; cin>>s; int k; cin>>k; int n = s.size(); int Max = 0; for(int i=0;i<n;i++) { unordered_map<int,int>m; int Maxfreq = 0; for(int j=i;j<n;j++) { m[s[j]]++; Maxfreq = max(Maxfreq,m[s[j]]); if(((j-i+1)-Maxfreq)>k) { break; } Max = max(Max,(j-i+1)); } } cout<<Max; } Time Complexcity : O(n^2) Optimized Code : int characterReplacement(string s, int k) { int n = s.size(); int Max = 0; unordered_map<int,int>m; int l=0; int r=0; int Maxfreq=0; while(r<n) { m[s[r]]++; Maxfreq = max(Maxfreq,m[s[r]]); while(((r-l+1)-Maxfreq)>k) { m[s[l]]--; Maxfreq = max(Maxfreq,m[s[l]]); l++; } Max = max(Max,(r-l+1)); r++; } return Max; } Time Complexcity : O(n)

  • @rukeshyadava7083
    @rukeshyadava7083 7 днів тому

    speechlesss ,one of the best explanations in youtube. please continue the theory like this ,it gives confidence

  • @ssuchitraparvathi8779
    @ssuchitraparvathi8779 10 днів тому

    Hey, Thank you, Was really looking forward for this video.... :)

  • @Tony-q6w8p
    @Tony-q6w8p 11 днів тому

    Explanation superb bro pls continue series fast upload

  • @sompalli-reddy-sekhar
    @sompalli-reddy-sekhar 17 днів тому

    As possible as possible 4 months lo complete chei anna interviews vasthunai

  • @vinnugollakoti
    @vinnugollakoti 17 днів тому

    Anna nuvvu views kuncham thakkuva vasthunnay ani videos apaku your videos are really helping me soo muchh anna

  • @balu9949
    @balu9949 17 днів тому

    Endi bro.. ateey poenav..

    • @bharathh_chandraa
      @bharathh_chandraa 17 днів тому

      Masters balu masters! Assalu time manage avvaledu. Ippudu time dorikinappudalla record chesi release chestunna!! Nee preparation ela nadustundi?

  • @thv8972
    @thv8972 18 днів тому

    Thanks bro.. Nice explanation👍

  • @memer_stufff
    @memer_stufff 18 днів тому

    Good Explanation bro

  • @__as_
    @__as_ 22 дні тому

    🔥 Atleast release 2 videos per week

  • @vaneetha_here_navaneetha
    @vaneetha_here_navaneetha 22 дні тому

    Vere level explanation 🎉🎉 New trails work outing😊 Blocking board with flash quote😅

    • @bharathh_chandraa
      @bharathh_chandraa 22 дні тому

      Thank you for the feedback Navaneetha. Continue chedam aithe!! Andaru meeku telisina quotes pampandi!😂

    • @vaneetha_here_navaneetha
      @vaneetha_here_navaneetha 22 дні тому

      @@bharathh_chandraa 😄😃sure

  • @Venky-o1f
    @Venky-o1f 22 дні тому

    happy new year anna

    • @bharathh_chandraa
      @bharathh_chandraa 22 дні тому

      Thanks Venky. Neeku kooda a very happy new year, ee year DSA champ aipovaali!!

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

    Happy new year Anna 🎉

    • @bharathh_chandraa
      @bharathh_chandraa 22 дні тому

      Thank you Sasidhar. Neeku kooda Happy and Prosperous New Year🎉🎉

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

    I remember doing this problem for the first time. appudu appudu nen endhuku puttinana ani anipinchindhi 😂. anyways u explained it really well anna. happy new year

    • @bharathh_chandraa
      @bharathh_chandraa 22 дні тому

      Happy new year Appaji. Andariki amrutham panchadaaniki puttav nuvvu!😂😂 Problems solve chesi chesi ee problem intha easy na ane stage ki raavali nuvvu!🙌🏻

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

    Nice explanation anna 👍 Please anna DSA series continue cheyandi it is very helpful for tech job aspirants 🙂

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

    very great explanation bro views ravatledhu ani videos cheyyadam apaku bro we will support

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

    annaya vachadu annaya ochaduu

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

    Happy new year 🎊 lokesh anna Chala late ayindhi But parledhu I am waiting for your videos I hope you are doing great in your masters 😊🎉🎉❤

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

      Thank you Navaneetha, how is your preparation going? Happy New Year to you too. Masters schedule is almost on my neck, so winter break lo time dorakagaane video release chestunna. Hope you get value out of it!

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

      @@bharathh_chandraa Thankyou so much Nenu TCS lo join ayyanu 😀 Yesterday first month salary thisukunna 🎊 Inka DSA medha full concentrate cheyali 😀

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

      Oh Congratulations!! Happy for you!! and you can help people in the community with their doubts and referrals. And yeah, All the best with your DSA preparation! This is the yearr!!

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

      @@bharathh_chandraa ❤️😀🎉

  • @devfusion-8718
    @devfusion-8718 23 дні тому

    Happy New Year 🎊🎊

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

      Long time Manjith. Ela nadustundi antha? Happy New Year to you too!! Rock the year!

    • @devfusion-8718
      @devfusion-8718 23 дні тому

      @bharathh_chandraa Fine Bro. Rock This Year With Your Content And Spread Coding Knowledge With All Job Aspirants

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

    After A Loong Loooooong Time_ Anyways, Literally Very Much Excited To See U Again Broo_

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

      I’m excited to see you guys succeed!! and ofcourse to accept all the love in the comments section too❤️

  • @SRI17.
    @SRI17. 23 дні тому

    Anna Ochinnduu 🔥🔥

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

    Anna supper cheppav asla ❤

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

    Best channel to learn dsa in telugu ❤🔥

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

    Way of teaching nice easy excellent great

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

    Emana chepinav bro 👏

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

    please write exact code without mistakes even colon or semicolon

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

    what is the difference between Normal set and HashSet, both are same or not?

    • @bharathh_chandraa
      @bharathh_chandraa 20 днів тому

      Both are not exactly same. Set data structure stores distinct data, and order em undadu. Also searching ki O(n) padtadi. Adhe Hashset aithe O(1) lo search chese laaga store cheskuntadi