Shortest Subarray to be Removed to Make Array Sorted | Leetcode 1574

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

Techdose

Techdose

Күн бұрын

Пікірлер: 22
@tarunkolla01
@tarunkolla01 Ай бұрын
Been waiting for your video to come out :D
@techdose4u
@techdose4u Ай бұрын
Finally, it's here :)
@utkarshramachandraep0995
@utkarshramachandraep0995 24 күн бұрын
quite a tricky question, but brilliant explanation
@techdose4u
@techdose4u 24 күн бұрын
Thanks :)
@HARSHRAJ-gp6ve
@HARSHRAJ-gp6ve Ай бұрын
Excellent approach sir
@techdose4u
@techdose4u Ай бұрын
Thanks :)
@Ishan-z8m
@Ishan-z8m Ай бұрын
nice explanation bhaiya.
@techdose4u
@techdose4u Ай бұрын
dhanyawaad :)
@sailendrachettri8521
@sailendrachettri8521 Ай бұрын
nice approach :)
@techdose4u
@techdose4u Ай бұрын
Glad it was helpful!
@monsuruokuniyi1234
@monsuruokuniyi1234 Ай бұрын
The first case, where you include only subarray starting from the left and remove every other element on the right, was not included in the code. Is there any reason why? Because according to your approach, we should check for each condition. It seems to me that the code checked the 2nd and 3rd conditions but not the first.
@techdose4u
@techdose4u Ай бұрын
It checked all the conditions. 1st instance it checked for case-1 (before starting the while loop shortest is assigned )
@devmahad
@devmahad Ай бұрын
thanks :)
@techdose4u
@techdose4u Ай бұрын
welcome back :)
@challengemania4447
@challengemania4447 Ай бұрын
Sir can you please tell us the secret behind generating large test case yourself🙏
@techdose4u
@techdose4u Ай бұрын
It takes me a lot of time to make slides. Secret recipe: Patiece (and a lot of it) 🙂
@vaibhav454
@vaibhav454 Ай бұрын
Please discuss Binary Search Approach
@techdose4u
@techdose4u Ай бұрын
next time if its optimal :)
@21flame72
@21flame72 Ай бұрын
in constraints 10^5 N^2 Algorithm will not works can you explain with some examples for these types of Time Complexity Make a video if you are free sir
@Ishan-z8m
@Ishan-z8m Ай бұрын
yes sir how you know that n2 is not working
@techdose4u
@techdose4u Ай бұрын
I have already made a video on how to filter the algorithm after looking at problem constraint. I will post the video in community post
@shivammishra6220
@shivammishra6220 Ай бұрын
@@Ishan-z8m in 1sec, max 10^9 operation we can be execute, (10^5)^2=10^10>>10^9. I hope this will clear your doubts.
Take K of Each Character From Left and Right | Leetcode 2516
22:38
Shortest Subarray with Sum at Least K | Leetcode 862
21:31
Techdose
Рет қаралды 38 М.
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,4 МЛН
Move Pieces to Obtain a String | Leetcode 2337
19:53
Techdose
Рет қаралды 5 М.
Systems Design in an Hour
1:11:00
Jordan has no life
Рет қаралды 33 М.
Max Chunks To Make Sorted | Leetcode 769
16:43
Techdose
Рет қаралды 96
When Optimisations Work, But for the Wrong Reasons
22:19
SimonDev
Рет қаралды 1,1 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН