HackerRank 2D Array - DS Explained - Java

preview_player
Показать описание


Preparing For Your Coding Interviews? Use These Resources
————————————————————

Other Social Media
----------------------------------------------

Show Support
------------------------------------------------------------------------------

#coding #programming #softwareengineering
Рекомендации по теме
Комментарии
Автор

That's what I am talking about Nick, I love what you said about keeping going until you get to Google, I am trying man, these easy problems are not so easy or straight forward, but I am learning. Thanks a lot.

hcadethc
Автор

For those following along in javascript, Number.MIN_VALUE is the smalled positive, non-zero number that can be represented in javascript so you would use negative max value (-Number.MAX_VALUE)

chaosavenger
Автор

Thank you so much Nick!! You just made it so simple!!

snehangshuchakraborty
Автор

That was nice dude. I always ignored the constraints section before watching this video.

musicjunkie
Автор

Thanks a lot for your explanation Nick, its easy to understand than i'm searching in google.

opalski
Автор

How do you set up HackerRank to be in arrays not Lists in the editor.

WarReDeeMeR
Автор

This would be O(n^2) correct? since youre nesting for loops. Is there a better way to do it where we can get a more optimal run time? I feel like in an interview itd look great if we could explain this this solution as the brute force solution then say theres a better one. But I could only think of this way.

saifa.
Автор

I'm just starting these challenges. I am a total newbie. But wouldn't one way to make it a little more efficient be to set the loop to return automatically if the sum is 63? That way if your input's first hourglass is seven nines you don't continue checking.

TDavisOfficial
Автор

Thanks for explaining with easy steps! Done.

perihan
Автор

Why don't loop it through 4 times and you don't need length int for the rows and columns?

aronhidvegi
Автор

Hello Nick. Thank you for the videos. Please upload more Hackerrank videos.

mohammadyahya
Автор

Thank you for teaching us the solution!! Subscribed!

hinatamcr
Автор

wow, that min_val setting logic was awesome.🤐

anirbansarkar
Автор

Damn ! That was really a good explanation.
Thanks

shadabhasankhan
Автор

Can you tell we why you have taken int column=arr[0].lenght instead of arr.lenght . i'll be glad if you can tell the difference.

Salesforce_Nexus
Автор

Hey Nick, new subscriber here, I was just a bit confused on why you subtracted -2 on the rows and columns, is there any link I can check out to do some reading on that end, I get the rest it's just the -2 that's really throwing me off, appreciate it.

yungkazi
Автор

I got

Exception in thread "main" 6
at



after copying exactly

penguimTwo
Автор

DS stands for data structure, my dude

jordanaugust
Автор

DS stands for data structures and algorithm

kaiserkonok
Автор

Hi Nick, Can you help me solve a 2D array question!

ShivamKumar-sczx