Trapping Rain Water | HARD Leetcode Problem | Most important interview coding question|with solution
ฝัง
- เผยแพร่เมื่อ 14 พ.ย. 2024
- #leetcodetamilsolution #leetcodeforcodinginterviewstamil #leetcodetrappingrainwatersolutiontamil
link to code : github.com/Alg...
problem link in leetcode : leetcode.com/p...
************************************************************
😎 Complete python beginner to advanced playlist : • learn python in tamil
🔥 Complete Java Beginner to Advanced playlist : • Java - Beginner to Adv...
😍 How to get Job in Zoho playlist : • Get job in zoho
✔ Placement Guidance for freshers and College Students : • placement guidance and...
❤ Leetcode problems with solutions : • leetcode problems
🔥 Data Structures in Tamil Explained : • Data Structures explai...
😎 Most Important C aptitude questions for programming interviews : • Aptitude Questions for...
*********************************************************
Thanks for watching
leetcode tamil ,leetcode problems with solutions tamil, leetcode problems with java solutions tamil, leetcode trapping rain water problem solution, three sum problem coding interview, coding interview problems tamil, programming interviews problems tamil,leetcode medium problems with solutions tamil,leetcode hard problems with solution tamil
nice one here s two pointer approach
public class Solution {
public int trap(int[] h) {
int l = 0, r = h.length - 1, lmax = Integer.MIN_VALUE, rmax = Integer.MIN_VALUE, ans = 0;
while (l < r) {
lmax = Math.max(lmax, h[l]);
rmax = Math.max(rmax, h[r]);
if(lmax
Mass bro neee......
Nalla sonninga!
Pakka code bro🔥🔥 yepdi bro neenga mattum ipdiala yosikiringa vere Mari bro superb 🤝🤝🤝
super bro. crystal clear explanation.
Super bro
This one is the simplest way to solve, easy to understand and is good for starters. I'd say decent for an interview. Yet there are different approaches to this problem
1. Using DP
2. Using two pointers
3. Using monotonic stack .
The two pointer is the most optimal solution with no extra space. I would always advise folks to know all the possible ways to solve a problem. so that you have the edge when asked for optimization during follow ups !
Superb bro. ... I want more Qestions like this......🔥🔥🔥
sure🙌. keep supporting and sharing. thanks
Annae mass nae nee🙌🏻❤️
Great Explanation!!
❤❤❤
super explanation bro
Excellent bro.. I am able to easily understand the problem after watching your video and was able to code in Python
thats awesome. keep up the great work 👍
tamil nadu oda striver bro neenga
Pls upload array medium level important questions for freshers
on the way..
@@AlgoTamizha Thank you ♥️
Niceee❤️
Anna zoho set 1 la 2 nd question podunga anna
bro zoho la entha question kettaga bro. level 2 on 27th December 2023
Bro enakku itha eclipse la pottu kaatunga.. Enakku ithula konjam puriyala bro
next video la epdi indha code ah full java program ah maathalamnu solren bro
@@AlgoTamizha nandri bro