LeetCode 264 | Ugly Number II | Solution Explained (Whiteboard + Java)

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

Xavier Elon

Xavier Elon

Күн бұрын

A continuation of the first problem. Let me know what you guys think about this dynamic programming problem.
Running Time: O(1) precomputed
Space Complexity: O(1) precomputed
Always be pluggin:
Slack Channel: join.slack.com...
Github: github.com/xav...
Facebook: / xavier.hollingsworth.3
Instagram: / xavierelon
LinkedIn: / xavier-hollingsworth-5...
Twitter: / elon_xavier

Пікірлер: 19
@almortada88
@almortada88 3 жыл бұрын
Keep making them videos bro! Thank you!
@steverogers9453
@steverogers9453 4 жыл бұрын
You're amazing!! Keep up the good work. This helps a lot. Thanks
@xavierelon
@xavierelon 4 жыл бұрын
Thank you!
@borlorbao
@borlorbao 2 жыл бұрын
Cheers for the video, I finally understand this
@devdev19
@devdev19 2 жыл бұрын
Good solution. Hope you keep uploading
@codingcat1836
@codingcat1836 2 жыл бұрын
Hey Xavier, great explanation! May I know the app you used to project iPad whiteboard to the Mac? It's much easier on my neck to look at sketches on the screen instead of the iPad. Thanks!
@xavierelon
@xavierelon 2 жыл бұрын
Hey Kester, it’s QuickTime on my MacBook. I just cast it
@codingcat1836
@codingcat1836 2 жыл бұрын
@@xavierelon Oh, so you casted a prerecorded video to iPad with a notebook open to record? Kinda counter-intuitive lol
@xavierelon
@xavierelon 2 жыл бұрын
@@codingcat1836 what? No I was drawing live. I plug it in and it mirrors my iPad
@codingcat1836
@codingcat1836 2 жыл бұрын
@@xavierelon Oh are you referring the sidecar functionality? How did you pull off recording both Mac and iPad screen then, just curious. Thanks!
@cosmoatlas2435
@cosmoatlas2435 2 жыл бұрын
Great content! you can also use a min heap to maintain the order of the Ugly numbers instead of using Math.min method.
@xavierelon
@xavierelon 2 жыл бұрын
That’s a great point. I did not think of that. Thank you
@saunaknandi1814
@saunaknandi1814 2 жыл бұрын
use for loop upto n only why to iterate upto 1675
@duedares
@duedares 4 жыл бұрын
You know, this code was as simple as it gets and most of us get it that it WORKS. The idea should be to explain the intuition behind it/ why does it work? Thanks!
@xavierelon
@xavierelon 4 жыл бұрын
Sorry my explanation was not sufficient. I tried to cover the minimum 2,3,5 factors as best as I could explain in my head
@duedares
@duedares 4 жыл бұрын
@@xavierelon That's cool mate. Totally appreciate the effort 🎈
@mr.mystiks9968
@mr.mystiks9968 3 жыл бұрын
I agree. Once you’re in the interview, you can’t gamble on getting asked a question you’ve solved previously. There is a thought process on how to break down the problem, make some observations, and lean towards an intuition. No use in watching you code tbh.
@shubhamgoel-web
@shubhamgoel-web 3 жыл бұрын
Remove your photo from the code!
@xavierelon
@xavierelon 3 жыл бұрын
Sorry about that
Ugly Number II - Leetcode 264 - Python
15:17
NeetCodeIO
Рет қаралды 14 М.
Ugly Number - Leetcode 263 - Python
10:44
NeetCode
Рет қаралды 25 М.
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 608 М.
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 107 МЛН
I Solved 100 LeetCode Problems
13:11
Green Code
Рет қаралды 104 М.
Ugly Number II | Leetcode 264 | Java Code | Developer Coder
17:19
Dynamic Programming isn't too hard. You just don't know what it is.
22:31
DecodingIntuition
Рет қаралды 174 М.
LeetCode 1 | Two Sum  | All Solutions Explained | Java + Whiteboard
12:17
Leetcode 264. Ugly Number II
18:11
Code with Alisha
Рет қаралды 16 М.
UGLY Numbers Dynamic Programming | LeetCode 264 | Ugly Number ii
21:10
Knowledge Center
Рет қаралды 12 М.
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 608 М.