Bharath Chandra (తెలుగు)
Bharath Chandra (తెలుగు)
  • 50
  • 174 596
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 - th-cam.com/video/ckTmoJjP5DQ/w-d-xo.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
มุมมอง: 236

วีดีโอ

Sliding Window Maximum(LeetCode 3) | Neetcode 19 / 150 | Bharath Chandra
มุมมอง 24319 ชั่วโมงที่ผ่านมา
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
มุมมอง 37214 วันที่ผ่านมา
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
มุมมอง 67014 วันที่ผ่านมา
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.1K5 หลายเดือนก่อน
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.3K5 หลายเดือนก่อน
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.1K5 หลายเดือนก่อน
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.8K5 หลายเดือนก่อน
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.7K5 หลายเดือนก่อน
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.2K5 หลายเดือนก่อน
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.5K6 หลายเดือนก่อน
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.1K6 หลายเดือนก่อน
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.6K6 หลายเดือนก่อน
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.1K6 หลายเดือนก่อน
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.5K6 หลายเดือนก่อน
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 - th-cam.com/video/ckTmoJjP5DQ/w-d-xo.html This video is a part of Neetcode 150 playlist on my channel Link to Neetcode 150 Playlist - th-cam.com/play/PLq57tMwpU41ZZ...
String Encode and Decode (LeetCode 271) | Neetcode 6 / 150 | Bharath Chandra (Telugu)
มุมมอง 1.5K6 หลายเดือนก่อน
String Encode and Decode (LeetCode 271) | Neetcode 6 / 150 | Bharath Chandra (Telugu)
Top K Frequent Elements (LeetCode 347) | Neetcode 5/ 150 | Bharath Chandra (తెలుగు)
มุมมอง 2.2K6 หลายเดือนก่อน
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
มุมมอง 22K6 หลายเดือนก่อน
Time Complexity and Space Complexity in Telugu | Big O notation for interviews | Bharath Chandra
Group Anagrams (LeetCode 49) | Neetcode 4/ 150 | Bharath Chandra (తెలుగు)
มุมมอง 1.5K6 หลายเดือนก่อน
Group Anagrams (LeetCode 49) | Neetcode 4/ 150 | Bharath Chandra (తెలుగు)
CountArrays and CountSort | Strings | Problem Solving| CountArrays vs HashMaps| Bharath Chandra
มุมมอง 1.5K6 หลายเดือนก่อน
CountArrays and CountSort | Strings | Problem Solving| CountArrays vs HashMaps| Bharath Chandra
Two Sum (LeetCode 1) | Neetcode 3 / 150 | Bharath Chandra (తెలుగు)
มุมมอง 2.2K6 หลายเดือนก่อน
Two Sum (LeetCode 1) | Neetcode 3 / 150 | Bharath Chandra (తెలుగు)
2 - Pointer Algorithm All Models | Intuition and Problem Solving | Bharath Chandra
มุมมอง 4.2K6 หลายเดือนก่อน
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
มุมมอง 5K6 หลายเดือนก่อน
Hashsets and HashMaps | Why and where do we use them in problems | Bharath Chandra
Valid Anagram (LeetCode 242) | Neetcode 2 / 150 | Bharath Chandra (తెలుగు)
มุมมอง 2.6K6 หลายเดือนก่อน
Valid Anagram (LeetCode 242) | Neetcode 2 / 150 | Bharath Chandra (తెలుగు)
Contains Duplicate (LeetCode 217) | Neetcode 1/ 150 | Bharath Chandra (తెలుగు)
มุมมอง 3.9K6 หลายเดือนก่อน
Contains Duplicate (LeetCode 217) | Neetcode 1/ 150 | Bharath Chandra (తెలుగు)
Leetocde Extensions
มุมมอง 9828 หลายเดือนก่อน
Leetocde Extensions
What is DSA? And Why should you learn it? #dsaroadmap #beginners
มุมมอง 31K10 หลายเดือนก่อน
What is DSA? And Why should you learn it? #dsaroadmap #beginners
My Amazon Interview Experience and 3 Takeaways
มุมมอง 6Kปีที่แล้ว
My Amazon Interview Experience and 3 Takeaways
Crack the Code with MassCoders | Bharath Chandra
มุมมอง 10Kปีที่แล้ว
Crack the Code with MassCoders | Bharath Chandra
How computers store photos, movies, and songs?
มุมมอง 2.1Kปีที่แล้ว
How computers store photos, movies, and songs?

ความคิดเห็น

  • @manojkumarparuchuri5920
    @manojkumarparuchuri5920 2 ชั่วโมงที่ผ่านมา

    Nice video bro

  • @manojkumarparuchuri5920
    @manojkumarparuchuri5920 2 ชั่วโมงที่ผ่านมา

    Nice video bro

  • @karthiksurvepalli5695
    @karthiksurvepalli5695 13 ชั่วโมงที่ผ่านมา

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

    • @bharathh_chandraa
      @bharathh_chandraa 12 ชั่วโมงที่ผ่านมา

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

  • @chillgamergkr317
    @chillgamergkr317 วันที่ผ่านมา

    Nice explanation

  • @chillgamergkr317
    @chillgamergkr317 วันที่ผ่านมา

    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 วันที่ผ่านมา

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

  • @chillgamergkr317
    @chillgamergkr317 วันที่ผ่านมา

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

  • @kalyanamephraim4393
    @kalyanamephraim4393 วันที่ผ่านมา

    Do not stop this series

  • @suryapavan6986
    @suryapavan6986 2 วันที่ผ่านมา

    Excellent explanation❤❤❤

  • @ram8055-x6n
    @ram8055-x6n 2 วันที่ผ่านมา

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

  • @programming8187
    @programming8187 2 วันที่ผ่านมา

  • @ReshmaVaddikanchari
    @ReshmaVaddikanchari 3 วันที่ผ่านมา

    broo order to patu bytes lo kuda cheppandiii

  • @TheOptimus54
    @TheOptimus54 3 วันที่ผ่านมา

    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 3 วันที่ผ่านมา

      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!

  • @Manjith-1887
    @Manjith-1887 3 วันที่ผ่านมา

    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)

    • @bharathh_chandraa
      @bharathh_chandraa 3 วันที่ผ่านมา

      Thanks Manjith. Migitha vallaki help avtadi!

  • @rukeshyadava7083
    @rukeshyadava7083 4 วันที่ผ่านมา

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

  • @ssuchitraparvathi8779
    @ssuchitraparvathi8779 7 วันที่ผ่านมา

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

    • @bharathh_chandraa
      @bharathh_chandraa 6 วันที่ผ่านมา

      Happy to hear it helped! Keep practicing! 🔥

  • @Tony-q6w8p
    @Tony-q6w8p 8 วันที่ผ่านมา

    Explanation superb bro pls continue series fast upload

  • @sompalli-reddy-sekhar
    @sompalli-reddy-sekhar 14 วันที่ผ่านมา

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

  • @vinnugollakoti
    @vinnugollakoti 14 วันที่ผ่านมา

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

  • @balu9949
    @balu9949 14 วันที่ผ่านมา

    Endi bro.. ateey poenav..

    • @bharathh_chandraa
      @bharathh_chandraa 14 วันที่ผ่านมา

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

  • @thv8972
    @thv8972 15 วันที่ผ่านมา

    Thanks bro.. Nice explanation👍

  • @memer_stufff
    @memer_stufff 15 วันที่ผ่านมา

    Good Explanation bro

  • @__as_
    @__as_ 19 วันที่ผ่านมา

    🔥 Atleast release 2 videos per week

  • @vaneetha_here_navaneetha
    @vaneetha_here_navaneetha 19 วันที่ผ่านมา

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

    • @bharathh_chandraa
      @bharathh_chandraa 19 วันที่ผ่านมา

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

    • @vaneetha_here_navaneetha
      @vaneetha_here_navaneetha 19 วันที่ผ่านมา

      @@bharathh_chandraa 😄😃sure

  • @Venky-o1f
    @Venky-o1f 19 วันที่ผ่านมา

    happy new year anna

    • @bharathh_chandraa
      @bharathh_chandraa 19 วันที่ผ่านมา

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

  • @sasidhar1826
    @sasidhar1826 20 วันที่ผ่านมา

    Happy new year Anna 🎉

    • @bharathh_chandraa
      @bharathh_chandraa 19 วันที่ผ่านมา

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

  • @goldbeltappaji4685
    @goldbeltappaji4685 20 วันที่ผ่านมา

    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 19 วันที่ผ่านมา

      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 20 วันที่ผ่านมา

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

  • @vinnugollakoti
    @vinnugollakoti 20 วันที่ผ่านมา

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

  • @manojkumarparuchuri5920
    @manojkumarparuchuri5920 20 วันที่ผ่านมา

    annaya vachadu annaya ochaduu

  • @vaneetha_here_navaneetha
    @vaneetha_here_navaneetha 20 วันที่ผ่านมา

    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 20 วันที่ผ่านมา

      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 20 วันที่ผ่านมา

      @@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 20 วันที่ผ่านมา

      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 20 วันที่ผ่านมา

      @@bharathh_chandraa ❤️😀🎉

  • @Manjith-1887
    @Manjith-1887 20 วันที่ผ่านมา

    Happy New Year 🎊🎊

    • @bharathh_chandraa
      @bharathh_chandraa 20 วันที่ผ่านมา

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

    • @Manjith-1887
      @Manjith-1887 20 วันที่ผ่านมา

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

  • @ManojKumarChittimeni
    @ManojKumarChittimeni 20 วันที่ผ่านมา

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

    • @bharathh_chandraa
      @bharathh_chandraa 20 วันที่ผ่านมา

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

  • @SRI17.
    @SRI17. 20 วันที่ผ่านมา

    Anna Ochinnduu 🔥🔥

  • @lasyasunkavilli4445
    @lasyasunkavilli4445 20 วันที่ผ่านมา

    Anna supper cheppav asla ❤

  • @ganibhai8594
    @ganibhai8594 28 วันที่ผ่านมา

    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 17 วันที่ผ่านมา

      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