![Bharath Chandra (తెలుగు)](/img/default-banner.jpg)
- 46
- 135 790
Bharath Chandra (తెలుగు)
India
Приєднався 8 лип 2012
Let's raise the bar!
Hi guys. I'm Bharath Chandra, an ex-Amazon Software Developer and an NIT Bhopal graduate. Ee channel lo mostly coding, productivity and colleges related info share chesthu untaanu. Randi Telugu content ni level-up chedham!!
Regular content kosam Instagram ki vacheyandi👇
Hi guys. I'm Bharath Chandra, an ex-Amazon Software Developer and an NIT Bhopal graduate. Ee channel lo mostly coding, productivity and colleges related info share chesthu untaanu. Randi Telugu content ni level-up chedham!!
Regular content kosam Instagram ki vacheyandi👇
Longest Substring Without Repeating Characters(LeetCode 3) | Neetcode 16 / 150 | Bharath Chandra
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 the logic?
Link to Two Pointer video - ua-cam.com/video/ckTmoJjP5DQ/v-deo.html
Link to the problem - leetcode.com/problems/container-with-most-water/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/
00: 00 - Introduction and Problem Statement
02: 38 - Brute Force Logic
06: 17 - Brute Force Algo and Pseudocode
14: 26 - Pseudocode
24: 42- Why not Hashmap or Model 2
30: 08- Conclusion
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/container-with-most-water/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/
00: 00 - Introduction and Problem Statement
02: 38 - Brute Force Logic
06: 17 - Brute Force Algo and Pseudocode
14: 26 - Pseudocode
24: 42- Why not Hashmap or Model 2
30: 08- Conclusion
Переглядів: 937
Відео
Best Time to Buy and Sell Stock(LeetCode 121) | Neetcode 15 / 150 | Bharath Chandra (Telugu)
Переглядів 710День тому
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)
Переглядів 529День тому
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,3 тис.14 днів тому
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,3 тис.21 день тому
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 тис.21 день тому
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,2 тис.21 день тому
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)
Переглядів 1,8 тис.28 днів тому
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,2 тис.Місяць тому
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)
Переглядів 1,4 тис.Місяць тому
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
Переглядів 742Місяць тому
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,1 тис.Місяць тому
Hello guys, cheers to another piece of learning. Today I talked about the "String Encode and Decode" 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 ...
Top K Frequent Elements (LeetCode 347) | Neetcode 5/ 150 | Bharath Chandra (తెలుగు)
Переглядів 1,4 тис.Місяць тому
Hello guys, cheers to another piece of learning. Today I talked about the "Top K Frequent Elements" 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 y...
Time Complexity and Space Complexity in Telugu | Big O notation for interviews | Bharath Chandra
Переглядів 9 тис.Місяць тому
Hello guys, cheers to another piece of learning. Today I talked why we use Big O notation and what time complexity and space complexities are! Why do we need them? And why are they asked so much in the intervies? I also discussed how time and space complexities are calculated in coding problems Brute Force in depth ee video lo cheppa - ua-cam.com/video/H1JTua2uMd8/v-deo.html Subarray Sum equals...
Group Anagrams (LeetCode 49) | Neetcode 4/ 150 | Bharath Chandra (తెలుగు)
Переглядів 1 тис.Місяць тому
Hello guys, cheers to another piece of learning. Today I talked about the "Group Anagrams" 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 ...
CountArrays and CountSort | Strings | Problem Solving| CountArrays vs HashMaps| Bharath Chandra
Переглядів 1 тис.Місяць тому
CountArrays and CountSort | Strings | Problem Solving| CountArrays vs HashMaps| Bharath Chandra
Two Sum (LeetCode 1) | Neetcode 3 / 150 | Bharath Chandra (తెలుగు)
Переглядів 1,5 тис.Місяць тому
Two Sum (LeetCode 1) | Neetcode 3 / 150 | Bharath Chandra (తెలుగు)
2 - Pointer Algorithm All Models | Intuition and Problem Solving | Bharath Chandra
Переглядів 2,4 тис.Місяць тому
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
Переглядів 3,2 тис.Місяць тому
Hashsets and HashMaps | Why and where do we use them in problems | Bharath Chandra
Valid Anagram (LeetCode 242) | Neetcode 2 / 150 | Bharath Chandra (తెలుగు)
Переглядів 1,9 тис.Місяць тому
Valid Anagram (LeetCode 242) | Neetcode 2 / 150 | Bharath Chandra (తెలుగు)
Contains Duplicate (LeetCode 217) | Neetcode 1/ 150 | Bharath Chandra (తెలుగు)
Переглядів 2,8 тис.Місяць тому
Contains Duplicate (LeetCode 217) | Neetcode 1/ 150 | Bharath Chandra (తెలుగు)
What is DSA? And Why should you learn it? #dsaroadmap #beginners
Переглядів 26 тис.5 місяців тому
What is DSA? And Why should you learn it? #dsaroadmap #beginners
My Amazon Interview Experience and 3 Takeaways
Переглядів 5 тис.8 місяців тому
My Amazon Interview Experience and 3 Takeaways
Crack the Code with MassCoders | Bharath Chandra
Переглядів 9 тис.9 місяців тому
Crack the Code with MassCoders | Bharath Chandra
How computers store photos, movies, and songs?
Переглядів 2 тис.Рік тому
How computers store photos, movies, and songs?
"Coding ఎందుకు చేస్తాం" in 3 min 33 seconds (Telugu)
Переглядів 3,8 тис.Рік тому
"Coding ఎందుకు చేస్తాం" in 3 min 33 seconds (Telugu)
bro please do 3 videos per week ❤
2 pointer sort code bro&explain is good
class Solution { public int lengthOfLongestSubstring(String s) { int max_len=0; int i=0; Hashset<Character> set=new Hashset<Character>(); for(int j=0;j<s.length();j++) { while (set.contains(s.CharAt(s(j)))) { set.remove(s.CharAt(s(i))); i+=1; } set.add(s.CharAt(s(j))); max_len=Math.max(max_len,j-i+1); } return max_len ; } } Main.java:13: error: cannot find symbol Hashset<Character> set=new Hashset<Character>(); ^ symbol: class Hashset location: class Main.Solution anna ela error vasthundhi artham kaledhu yendhuku vasthundhi ee error ani
Scholarship
sliding window approach class Solution: def lengthOfLongestSubstring(self, s: str) -> int: i=0 max_length=0 hashset=set() for j in range(0,len(s)): while s[j] in hashset: hashset.remove(s[i]) i+=1 hashset.add(s[j]) max_length=max(max_length,j-i+1) return max_length
Brute force approach lass Solution: def lengthOfLongestSubstring(self, s: str) -> int: max_length=0 for i in range(0,len(s)): for j in range(i,len(s)): hashset=set() flag=True for k in range(i,j+1): if s[k] in hashset: flag=False break hashset.add(s[k]) if flag==True: max_length=max(max_length,j-i+1) return max_length
Anna explanation neat,clarity ga undi. Elantivi Inka pettu Anna
love u bro .... telugu community ki DSA kastalu teerinatte mee chaneel tho....... plz don't stop until this is enough to reach DSA advance
Super bro
Adhaina chesina problem ekuva days gurtu vundali ante ela Tips evu anna plz
oko prblm ni 3 different testcases tho dry run cheyandi...
Nice explanation with real time examples Brother. and Thanks for forgetting Laptop in Kitchen, that brought the whole explanation for HASHMAP/HASHSET Thanks for the video and keep posting
class Solution: def maxProfit(self, prices: List[int]) -> int: prefix=[0]*len(prices) prefix[0]=prices[0] for i in range(1,len(prices)): res=min(prices[i],prefix[i-1]) prefix[i]=res maz=0 for i in range(1,len(prices)): if prices[i]-prefix[i-1]>maz: maz=prices[i]-prefix[i-1] return maz this is my another code by own thinking
def isValidSudoku(self, board: List[List[str]]) -> bool: for i in range(len(board)): row_check=[] col_check=[] for j in range(len(board)): if board[i][j]!=".": if board[i][j] in row_check: return False row_check.append(board[i][j]) if board[j][i]!=".": if board[j][i] in col_check: return False col_check.append(board[j][i]) start_row=start=0 row_end=col_end=3 for i in range(3): for _ in range(3): temp=[] for j in range(start_row,row_end): for k in range(start,col_end): if board[j][k]!=".": if board[j][k] in temp: return False temp.append(board[j][k]) start+=3 col_end+=3 start_row+=3 row_end+=3 start=0 col_end=3 return True Bro ee code ki leetcode lo O(1) time complexity ani istundi , is it true?
bro...........binary search video cheyandhi
anna first question start chesemundhu meru aa question ni neetcode platform lo chupinchi tharvatha white board medha chepandi appudu memu aa question ni artham chesukonni memu try chese motham video chustham
Done!
def decode(self, s: str) -> List[str]: i=0 t='' result=[] while (i < len(s)): flag=0 j=i if s[j]=="#": length_ss=int(t) cur=0 s1='' while(cur<length_ss): j+=1 s1+=s[j] cur+=1 result.append(s1) flag=1 if flag==1: t='' else: t+=s[j] j+=1 i=j return result Bro dini time complexity O(n**2) or O (n * l)
Bro expalination peaks but code tho step by step explain cheyy 🙏
Bharat, love babbar 450 questions kuda solve cheyava, this would be great help for future generations.
Well explained on two sum problem statement, tq Bharat
Hi Bharath Chandra, 2 unavailable videos hidden.
Thanks for pointing out!
My doubt In for loop, syntax is * for i in range (start, end, step): -In this end = 10 then it gives 9 is end th element . -In this problem y we use len(nums) instead of len(nums)+1
superb explanation anna👍
Next videos fast ga pettu bro
Repu okati release chestunna Mouli!
Day -3 ✅ java brute force : class Solution { public int[] twoSum(int[] nums, int target) { for ( int i = 0 ; i < nums.length ; i ++) { for ( int j = i + 1 ; j < nums.length ; j ++) { if ( nums[i] + nums [j] == target ) { return new int[] { i, j }; } } } return null ; } }
Linked list explain plz😢
very good way of explanation thank you bro .
#optimal approach prices = [7, 1, 5, 3, 6, 4] n = len(prices) maxprofit = 0 i = 0 j = 1 while j < n: if prices[j] - prices[i] > maxprofit: maxprofit = prices[j] - prices[i] if prices[j] < prices[i]: i = j j += 1 print(maxprofit) # Output: 5
#brute force approach arr=[7 , 1, 5, 3, 6, 4] n=len(arr) maxprofit=0 for i in range(0,n-1): #loop for buying day for j in range(i+1,n): #loop for selling down profit=arr[j]-arr[i] #profit=selling price- buying price maxprofit=max(maxprofit,profit) #updating profit print(maxprofit)
int mini=INT_MAX; for(int i=0;i<n;i++) { ans=max(ans,arr[i]-mini); mini=min(arr[i],mini); } return ans;
a=[3,1,0,2,1,0,1,3,2,1,2,3] m=0 #level by level water for i in range(1,max(a)+1): k=i #check every unit area for j in range(len(a)): if(i<=a[j]): if(j!=a.index(i) and j-k!=1): if j>=k: m=m+j-k-1 else: m=m+k-j-1 k=j else: k=j print(m) Water filling level by level genaral approach 😅
Hi Anna iam Java developer looking for freelancing jobs as Java developer could you please share info
Hi Anna o(n3 ) undi kada 9:13 could you please explain in detail
Hi Anna, Meeku telisina Python dsa youtube channel suggest cheyara
Neet code bruh... Utube lo search chei
bro last approach ardam kaaledu bro🙄😥
Doubts note cheskoni pettukondi. Live pettinappudu ee doubts anni clear chesthaanu. Also series ayyaka chaala mandiki ardham kaani videos unte malli remake cheyadaaniki plan chestha!
hi anna rough ga enii days padhuthundiii dsa complete cheyadaniki and knch ma kosam daily vedios upload chey anna.....alage 3rd year vallaki oka guidance or roadmap la pettandiii anna...
Yeah Kushwanth, naa migitha work commitments nunchi free cheskoni ee project meedha time pedtunna mee kosam. Naa best consistency tho videos chestha!! And 3rd year vallaki roadmap already oka short petta ... roadmap to high packages take a look
efficient approach def trap(height): if not height: return 0 n = len(height) left_max = [0] * n right_max = [0] * n total_water_stored = 0 # Fill left_max array left_max[0] = height[0] for i in range(1, n): left_max[i] = max(left_max[i - 1], height[i]) # Fill right_max array right_max[n - 1] = height[n - 1] for i in range(n - 2, -1, -1): right_max[i] = max(right_max[i + 1], height[i]) # Calculate total water stored with explicit check for i in range(n): water_level = min(left_max[i], right_max[i]) water_stored = water_level - height[i] if water_stored > 0: total_water_stored += water_stored return total_water_stored
brute force approach height=[0,1,0,2,1,0,1,3,2,1,2,1] totalwaterstored=0 for i in range(0,len(height)): if i>0: leftmax=max(height[:i]) else: leftmax=0 if i<len(height)-1: rightmax=max(height[i+1:]) else: rightmax=0 waterlevel=min(leftmax,rightmax) waterstored=waterlevel-height[i] if waterstored>0: totalwaterstored+=waterstored return totalwaterstored
Brother,topic wise possible patterns like arrays,strings ala problems solve cheyandhi.My small request kindly explain the zero duplicates problem with in place approach.Thanks in advance brother
Topic wise gaane problems solve chestunnam brother. First hashmaps models cover chesam, next 2 pointer. Ivvalti nunchi sliding window problems ostunnay! Edhaina topic start chesthe andulo anni models cover chestunnam
Sorry for the delay guys, I know you all are waiting! Chaala effort padindhi ee video lo, reshoot cheyalsi vachindi. Next time nunchi videos evaina chaala delay avthunte playlist lo next videos release cheyadaaniki try chestha parellel ga
Also meeru DSA nerchukuntunnattu mee linkedin network tho share cheskuntunnara?!
anna c++ loni cheyppu anna youtube loni anni akkuva channels java and python loni unnayi codes but c++ ki vachinapitiki sudo code cheypaysi vadileystunaru anna c++ loni cheyyu anna
Good explanation brother😊
Bro code is not visible
Thank you very much brother...!!!
Superr bro thanku
anna waiting for videos
Ellundi morning kalla 3 videos osthay!
Bro Fast Ga upload chyandi
Osthay bro. Next 2 days lo 3 videos osthay line ga!
Bro ee video chala bagundhi but vere videos anni time chala ekkuva vunde next videos kuda duration ila ga vunte chala baguntadhi bro
Easy problems ki ekkuva time teeskonu Anudeep. Ekkadaina complex ga anipisthe andariki ardham ayyela cheppadaaniki time teeskovalsostundi. But yeah, I'll try to keep things on point.
Where u are working my brother
I was an SDE at Amazon. Now persuing my masters
Hi bharath, this swaroopa u r explanation was so good and impressive. I feel that when i cleared my mca i didn't get the guidence like this and moved to govt sector with a lot of hard work. Now i just want to prove my self in coading like DSA. Is it possible now.
Yes Swaroopa, it is possible at anytime if you have the interest and time to learn it! I wish you the best with it.
Hai anna, nenu 1st year complete chesa,c lang basics vachayi anthey 2nd year nunchi ey language choose chesukovalo cheppunanna, That it should be help for getting job or any other skills to prepare from now itself.Plz anna reply 🙏
Depeding upon the tech, Java or Python nerchukovachu. If emi clarity lekapothe go for Python, opportunoties perugutunnay. Aina ee language sarigga nerchukunna sarey, verey language ki move avvadam easy ne