Trapping Rain Water Problem ( LeetCode #42 ) Part-2 | FREE DSA Course in JAVA | Lecture 73

  Рет қаралды 5,424

TAP ACADEMY

TAP ACADEMY

Жыл бұрын

This is part 2 of the previous video in which we used a naive method.
To fully understand this topic please go and watch part 1 first:- • Trapping Rain Water Pr...
This is a popular Leetcode question in many product-based companies like Google, Facebook, and Salesforce.
The question reads out:-
Given n non-negative integers representing an elevation map where the width of each bar is 1. Calculate how much water it can trap after raining.
So basically we have to find out how many units of water will be stored with the given arrangement of bars in form of an array.
There are specific observations you can make some base conditions
1. There should be minimum of three bars
2. Increasing bars will not store any water
3. Decreasing water will not store any water
4. 1st and last bar will not store any water
So you can use them to directly return 0 as the answer.
Check out the complete lecture to know the complete solution to the program to find the trapped rainwater.
For more information, fill out this form: forms.gle/8eiUmM92Fx563Aen9
or call us at 8884881203
Facebook: / thetapacademy
Instagram: / tapacademy_online
Linkedin: / 73820805
Website: www.thetapacademy.com​
#java #javaarray #array #arrayjava #javaprogramming #programming #programmer

Пікірлер: 15
@sukanshigarg6051
@sukanshigarg6051 Ай бұрын
thank you sir
@UmmeKNeha
@UmmeKNeha 5 ай бұрын
what an explanation. becoming a fan of you
@SanthoshHugar
@SanthoshHugar 6 ай бұрын
Wow..... What an explanation. Kudos to your efforts.
@aadarshpandit2929
@aadarshpandit2929 7 ай бұрын
sir please make more videos. You explain very beautifully with writing code also. it helps a lot of beginning students like me to understand how to code even the brute force approach.
@068_kaushikbhandari4
@068_kaushikbhandari4 6 ай бұрын
great explanation sir👌
@naag4852
@naag4852 8 ай бұрын
What a way of explaination Loved it
@TakdirThakur-e1p
@TakdirThakur-e1p 27 күн бұрын
I face so much difficulty with optimized trapping rainwater even you explain it. But with repeated I watch your video now I understand the logic. Genuinely thank u sir🫶
@UmaGowda1232
@UmaGowda1232 Жыл бұрын
Superb Explanation🤩
@prathyusharamireddy4709
@prathyusharamireddy4709 Жыл бұрын
Awesome explanation
@user-hx1kp8kr4m
@user-hx1kp8kr4m 2 ай бұрын
Excellent
@immortalveejay
@immortalveejay Жыл бұрын
Amazing :)
@TAPACADEMY
@TAPACADEMY Жыл бұрын
Do subscribe to the channel.
@shitalshinde9387
@shitalshinde9387 Жыл бұрын
Rohit sir how many days has been required for to complete this course?
@TAPACADEMY
@TAPACADEMY Жыл бұрын
It's almost 50% complete
@sandeepamarnath3295
@sandeepamarnath3295 Жыл бұрын
You deserve 10 million subscribers. Became your fan. Keep up the good work!!
路飞太过分了,自己游泳。#海贼王#路飞
00:28
路飞与唐舞桐
Рет қаралды 38 МЛН
Smart Sigma Kid #funny #sigma #memes
00:26
CRAZY GREAPA
Рет қаралды 6 МЛН
Викторина от МАМЫ 🆘 | WICSUR #shorts
00:58
Бискас
Рет қаралды 5 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 33 МЛН
Uncle Logic- A Stand Up Special
56:49
Kunal Kamra
Рет қаралды 2,8 МЛН
Bhagavad Gita Complete Summary
1:53:04
Arjuna Avatar
Рет қаралды 300 М.
Seeds of Growth (1111hz) | 1 hour handpan music | Malte Marten
1:04:32
Malte Marten
Рет қаралды 6 МЛН
Rotate Array | Leetcode 189 | Top 150 interview question series
11:41
⚡ Арестович:ПУТИН всегда держит СЛОВО
5:10
военкор Арнольд
Рет қаралды 220 М.
路飞太过分了,自己游泳。#海贼王#路飞
00:28
路飞与唐舞桐
Рет қаралды 38 МЛН