LeetCode Find Pivot Index Solution Explained - Java

  Рет қаралды 20,391

Nick White

Nick White

Күн бұрын

Пікірлер: 24
@hussainyunus2045
@hussainyunus2045 Жыл бұрын
Love the fact that it was actually a long explanation cause you did a great job at teaching the example at hand.
@RohitKumar-vb7gt
@RohitKumar-vb7gt 4 жыл бұрын
if anyone listen you carefully ,then easily understand...really very good explanation... bro try to upload more video(leetcode) as much as possible...
@charismatic1516
@charismatic1516 4 жыл бұрын
Nice explanation! However, in the code, shouldn't line 10 be nums [i - 1] instead of nums [i]? Prefix sum is sum of all elem to left of current elem (at i). That is also the reason we check for i != 0, since there is nothing to left of 0, so we cannot do nums [0 - 1] and so we assume prefix sum = 0 in that case.
@DeGoya
@DeGoya 2 жыл бұрын
depends on the requirements and constraints. Here it considers everything left from nums[0] as 0, as well as everything right from nums[nums.length - 1]
@sakshamkumarmishra
@sakshamkumarmishra 2 жыл бұрын
This logic also works fine int sum=0; for(int i=0;i
@raginibhayana8305
@raginibhayana8305 2 жыл бұрын
Thank you so much and for also showing your mistakes, it helps us understand better
@Rizz_trader
@Rizz_trader 8 ай бұрын
that line " iam the king of mistakes"🤣🤣🤣🤣
@nandiniverma5273
@nandiniverma5273 7 ай бұрын
No dude , no mess at all thanks if the video is still longer bt you conveyed it nicely to people.
@ishaila2079
@ishaila2079 2 жыл бұрын
Thanks dude, you explained very well
@nandiniverma5273
@nandiniverma5273 7 ай бұрын
You are amazing leetcoder nick.
@nihardabhi5622
@nihardabhi5622 2 жыл бұрын
6:56 we respect your efforts !! love you bro !! we respect you
@truptiraut6753
@truptiraut6753 4 жыл бұрын
You are the best leetcoder ever...your solutions are amazing with really good explanation!
@tamimshams7676
@tamimshams7676 Жыл бұрын
Yo Man - You are doing great and one of the best leetCoder
@kavyabanka4482
@kavyabanka4482 Жыл бұрын
I love your way of teaching Nick Love from India💙
@RahulSoni-br1qd
@RahulSoni-br1qd Жыл бұрын
it's more like a stand up dude ! 😂 but worth it
@nihardabhi5622
@nihardabhi5622 2 жыл бұрын
you are my ideal person !!!
@rayprusia4753
@rayprusia4753 4 жыл бұрын
I never make mistakes, which is why watch your videos.... Just kiddin' great explanation. Thanks.
@srijitdebsarma3451
@srijitdebsarma3451 Жыл бұрын
You are the best😍😌
@dincerbeken5761
@dincerbeken5761 2 жыл бұрын
Your explanations are the best and I love you bruh (much better than neetcode), but coming directly to the total sum may be not so intuitive, was not for me. I first solved it with left to right and right to left loops. Then to remove the extra space, I came up with the total sum.
@guptashashwat
@guptashashwat 2 жыл бұрын
thnx,
@ashishthakur9983
@ashishthakur9983 Жыл бұрын
🔥🔥🔥
@lifeofme3172
@lifeofme3172 Жыл бұрын
I wasted 3 hrs in this problem. Trying to solve this
@someshsaharan5813
@someshsaharan5813 Жыл бұрын
04:10 my boy is high for sure lmao
@jawonwinbush
@jawonwinbush Жыл бұрын
Luke Skywalker
LeetCode Verifying an Alien Dictionary Solution Explained - Java
11:17
Amazon Coding Interview Question - First Missing Positive (LeetCode)
20:47
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 1,5 МЛН
Beautiful gymnastics 😍☺️
00:15
Lexa_Merin
Рет қаралды 14 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 20 МЛН
ТАМАЕВ УНИЧТОЖИЛ CLS ВЕНГАЛБИ! Конфликт с Ахмедом?!
25:37
Why do databases store data in B+ trees?
29:43
Arpit Bhayani
Рет қаралды 32 М.
#20 Python Tutorial for Beginners | While Loop in Python
12:43
Telusko
Рет қаралды 1,6 МЛН
Whiteboard Coding Interviews: 6 Steps to Solve Any Problem
15:18
Fullstack Academy
Рет қаралды 362 М.
Pointers and dynamic memory - stack vs heap
17:26
mycodeschool
Рет қаралды 1,4 МЛН
you will never ask about pointers again after watching this video
8:03
Low Level Learning
Рет қаралды 2,1 МЛН
Google Coding Interview With A Competitive Programmer
54:17
Clément Mihailescu
Рет қаралды 2,5 МЛН
System Design Interview - Distributed Cache
34:34
System Design Interview
Рет қаралды 353 М.
Battery  low 🔋 🪫
0:10
dednahype
Рет қаралды 12 МЛН
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,3 МЛН
S24 Ultra and IPhone 14 Pro Max telephoto shooting comparison #shorts
0:15
Photographer Army
Рет қаралды 9 МЛН