Valid Sudoku - LeetCode 36 - Java

  Рет қаралды 4,099

LeetCode University

LeetCode University

Күн бұрын

Пікірлер: 43
@shobhanathsharma2113
@shobhanathsharma2113 Жыл бұрын
Very simple and intuitive explanation. Really appreciate it
@LeetCodeUniversity
@LeetCodeUniversity Жыл бұрын
Thank you!
@suggestaname1685
@suggestaname1685 2 жыл бұрын
WOW, I never thought about using a single HashSet. That is so smart, thank you for sharing and for great explanation!
@LeetCodeUniversity
@LeetCodeUniversity 2 жыл бұрын
Thank you so much!
@andretheruler714
@andretheruler714 2 жыл бұрын
thank you i was lost until i watched you video on this
@LeetCodeUniversity
@LeetCodeUniversity 2 жыл бұрын
Thank you, I am so glad I helped you out!
@alexshay7969
@alexshay7969 Жыл бұрын
A great explanation on the individual boxes! None else explains this in their code. They just copy and memorize. A terrible way to teach. Thanks!!
@LeetCodeUniversity
@LeetCodeUniversity Жыл бұрын
Thank you, I am really glad you found the video helpful!
@KittyInCali
@KittyInCali Ай бұрын
I went over multiple videos, this was by far the best explanation
@LeetCodeUniversity
@LeetCodeUniversity Ай бұрын
Thank you! Glad it was helpful!
@ukpauchechi
@ukpauchechi 16 күн бұрын
Thanks for this explanation, wish I could give this more than one thumbs up😊
@LeetCodeUniversity
@LeetCodeUniversity 15 күн бұрын
You are so kind. Thank you and glad it was helpful!!
@6lack-Echo
@6lack-Echo 2 жыл бұрын
You should make more videos, love your explanation would watch a whole DS&A playlist by you :)
@LeetCodeUniversity
@LeetCodeUniversity 2 жыл бұрын
Thank you so much!
@162sujiths4
@162sujiths4 9 ай бұрын
Short and crisp 👏
@LeetCodeUniversity
@LeetCodeUniversity 9 ай бұрын
Thank you!
@ranjitasahu19
@ranjitasahu19 24 күн бұрын
This is so good approach, thanks a lot.
@LeetCodeUniversity
@LeetCodeUniversity 23 күн бұрын
Glad it was helpful!
@amitghosh5
@amitghosh5 14 күн бұрын
this was great. I have immediately subscribed
@LeetCodeUniversity
@LeetCodeUniversity 14 күн бұрын
Thank you so much!!
@Jack-ke3wm
@Jack-ke3wm 2 жыл бұрын
Very smart technique! Thank you for great explanation.
@LeetCodeUniversity
@LeetCodeUniversity 2 жыл бұрын
Thank you!
@bashierdahman4550
@bashierdahman4550 Жыл бұрын
Could you please post more, your videos are the best on youtube!
@LeetCodeUniversity
@LeetCodeUniversity Жыл бұрын
Thank you 🙏 I am having a really hard time to find the time to shoot the videos. I will try though
@saleheen12
@saleheen12 6 күн бұрын
Thanks. Only explanation I understood.
@LeetCodeUniversity
@LeetCodeUniversity 6 күн бұрын
I am glad I was able to help!
@legna516
@legna516 4 ай бұрын
Please continue your content, much appreciated! Liked and subscribed.
@LeetCodeUniversity
@LeetCodeUniversity 4 ай бұрын
I really appreciate you!
@nitingoel258
@nitingoel258 2 жыл бұрын
Thank You , very well explained !
@LeetCodeUniversity
@LeetCodeUniversity 2 жыл бұрын
Thank you so much!
@anthonyang8494
@anthonyang8494 2 жыл бұрын
Very very good explanation! Ty
@LeetCodeUniversity
@LeetCodeUniversity 2 жыл бұрын
Thank you!
@nautilus2024
@nautilus2024 3 ай бұрын
wow, awesome !
@Miscellaneous-Things
@Miscellaneous-Things 2 жыл бұрын
Great explanation as always.
@LeetCodeUniversity
@LeetCodeUniversity 2 жыл бұрын
Thank you so much!
@foswacs4868
@foswacs4868 Жыл бұрын
Hope I am not too late to ask questions. How is it that the double for loop you wrote in the answer actual iterates through the board? For ( int i = 0; i < board.length; i ++) For (int j = 0; j < board[i].length; j ++) Isn't this how to traverse through a 2-D matrix/ array ?
@LeetCodeUniversity
@LeetCodeUniversity Жыл бұрын
You are exactly right. The double for loop is used to traverse over a 2-D matrix. But what is that? It is a grid composed of rows and columns. The sudoku board is a grid composed or rows and columns. So it is indeed a 2-D array/matrix. Now, board.length is finding the number of rows And board[i].length is finding the number of columns. In this case we know the board has 9 rows and 9 columns. I hope this helps. If not, please let me know exactly where you are confused and I will explain further.
@bobzero3727
@bobzero3727 Жыл бұрын
That was great
@LeetCodeUniversity
@LeetCodeUniversity Жыл бұрын
Thank you!
@amitbhattacharya356
@amitbhattacharya356 2 жыл бұрын
Time complexity will be O(n^2) ?
@LeetCodeUniversity
@LeetCodeUniversity 2 жыл бұрын
In this Question since we know the grid is 9*9 then the time is not depended on the input. We will always go over all 81 fields in the board. So the time is O(81) = O(1) aka constant time. Now, if they said that the grid is N * N then the time is O(n^2)
@StfuSiriusly
@StfuSiriusly 5 ай бұрын
great explanation, I was hoping to find more but this seems to be your last video. Any plans to make more?
@LeetCodeUniversity
@LeetCodeUniversity 5 ай бұрын
Thank you so much! Yes, I might come back to doing them. At least, I hope the videos I have helped you become a little better!
Palindromic Substrings - LeetCode 647 - Java
23:25
LeetCode University
Рет қаралды 95
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 238 М.
РОДИТЕЛИ НА ШКОЛЬНОМ ПРАЗДНИКЕ
01:00
SIDELNIKOVVV
Рет қаралды 3,5 МЛН
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
路飞与唐舞桐
Рет қаралды 28 МЛН
Create a Sudoku Solver In Java In 20 Minutes - Full Tutorial
20:25
Coding with John
Рет қаралды 322 М.
Valid Sudoku - Amazon Interview Question - Leetcode 36 - Python
13:28
How I would learn Leetcode if I could start over
18:03
NeetCodeIO
Рет қаралды 579 М.
Pass Your Next Tech Interview With Valid Sudoku
6:42
Chris Courses
Рет қаралды 17 М.
Longest Consecutive Sequence - LeetCode 128 - Java
24:18
LeetCode University
Рет қаралды 1,4 М.
LeetCode 36. Valid Sudoku (Algorithm Explained)
11:33
Nick White
Рет қаралды 100 М.
All Rust features explained
21:30
Let's Get Rusty
Рет қаралды 312 М.
Longest Substring Without Repeating Characters - LeetCode 3 - Java
18:24
LeetCode University
Рет қаралды 1 М.
Valid Sudoku - LeetCode #36 - Python, JavaScript, Java, C++
11:51
CodingNinja
Рет қаралды 3,3 М.