- 1 202
- 108 383
ExtremeProgrammer
เข้าร่วมเมื่อ 29 ต.ค. 2022
I am a software developer located in Ankara, Turkey. Right now I'm freelancing my work, and going to develop content for my totally new TH-cam channel.
No Sound Leetcode 728: Self Dividing Numbers
Here is a video of me solving LeetCode problem 728, titled as Self Dividing Numbers
🔍 Want to get better in solving LeetCode? Click here: th-cam.com/video/zlztl0oUrv0/w-d-xo.html
👾 Want to see me build games on HTML Canvas? Click here: th-cam.com/video/dJ5m87zcXn0/w-d-xo.html
🟰 Want to see me build a scientific calculator from scratch using C++: th-cam.com/video/plbS1ZGusjo/w-d-xo.html
🎯 Want to see me building a Tic-Tac-Toe game with C++ and added an AI opponent: th-cam.com/video/LRMDuHQqHYA/w-d-xo.html
--
Title: No Sound Leetcode 728: Self Dividing Numbers
Self Dividing Numbers,LeetCode 728,Self Dividing Numbers problem,LeetCode,LeetCode Python Easy,Self Dividing Numbers LeetCode Python,Self Dividing Numbers LeetCode,LeetCode Python Solutions,Self Dividing Numbers Solution,Self Dividing Numbers Solution Python,How to get better in LeetCode,LeetCode 728 solution,LeetCode 728 Python,LeetCode 728 Self Dividing Numbers solution Python,728 Self Dividing Numbers,LeetCode Solutions,ExtremeProgrammer,ExtremeProgrammerr,How to be a better programmer
🔍 Want to get better in solving LeetCode? Click here: th-cam.com/video/zlztl0oUrv0/w-d-xo.html
👾 Want to see me build games on HTML Canvas? Click here: th-cam.com/video/dJ5m87zcXn0/w-d-xo.html
🟰 Want to see me build a scientific calculator from scratch using C++: th-cam.com/video/plbS1ZGusjo/w-d-xo.html
🎯 Want to see me building a Tic-Tac-Toe game with C++ and added an AI opponent: th-cam.com/video/LRMDuHQqHYA/w-d-xo.html
--
Title: No Sound Leetcode 728: Self Dividing Numbers
Self Dividing Numbers,LeetCode 728,Self Dividing Numbers problem,LeetCode,LeetCode Python Easy,Self Dividing Numbers LeetCode Python,Self Dividing Numbers LeetCode,LeetCode Python Solutions,Self Dividing Numbers Solution,Self Dividing Numbers Solution Python,How to get better in LeetCode,LeetCode 728 solution,LeetCode 728 Python,LeetCode 728 Self Dividing Numbers solution Python,728 Self Dividing Numbers,LeetCode Solutions,ExtremeProgrammer,ExtremeProgrammerr,How to be a better programmer
มุมมอง: 2
วีดีโอ
No Sound Leetcode 726: Number of Atoms
มุมมอง 2014 ชั่วโมงที่ผ่านมา
Here is a video of me solving LeetCode problem 726, titled as Number of Atoms 🔍 Want to get better in solving LeetCode? Click here: th-cam.com/video/zlztl0oUrv0/w-d-xo.html 👾 Want to see me build games on HTML Canvas? Click here: th-cam.com/video/dJ5m87zcXn0/w-d-xo.html 🟰 Want to see me build a scientific calculator from scratch using C : th-cam.com/video/plbS1ZGusjo/w-d-xo.html 🎯 Want to see m...
No Sound Leetcode 725: Split Linked List in Parts
มุมมอง 72 ชั่วโมงที่ผ่านมา
Here is a video of me solving LeetCode problem 725, titled as Split Linked List in Parts 🔍 Want to get better in solving LeetCode? Click here: th-cam.com/video/zlztl0oUrv0/w-d-xo.html 👾 Want to see me build games on HTML Canvas? Click here: th-cam.com/video/dJ5m87zcXn0/w-d-xo.html 🟰 Want to see me build a scientific calculator from scratch using C : th-cam.com/video/plbS1ZGusjo/w-d-xo.html 🎯 Wa...
No Sound Leetcode 724: Find Pivot Index
มุมมอง 112 ชั่วโมงที่ผ่านมา
Here is a video of me solving LeetCode problem 724, titled as Find Pivot Index 🔍 Want to get better in solving LeetCode? Click here: th-cam.com/video/zlztl0oUrv0/w-d-xo.html 👾 Want to see me build games on HTML Canvas? Click here: th-cam.com/video/dJ5m87zcXn0/w-d-xo.html 🟰 Want to see me build a scientific calculator from scratch using C : th-cam.com/video/plbS1ZGusjo/w-d-xo.html 🎯 Want to see ...
No Sound Leetcode 722: Remove Comments
มุมมอง 64 ชั่วโมงที่ผ่านมา
Here is a video of me solving LeetCode problem 722, titled as Remove Comments 🔍 Want to get better in solving LeetCode? Click here: th-cam.com/video/zlztl0oUrv0/w-d-xo.html 👾 Want to see me build games on HTML Canvas? Click here: th-cam.com/video/dJ5m87zcXn0/w-d-xo.html 🟰 Want to see me build a scientific calculator from scratch using C : th-cam.com/video/plbS1ZGusjo/w-d-xo.html 🎯 Want to see m...
No Sound Leetcode 721: Accounts Merge
มุมมอง 94 ชั่วโมงที่ผ่านมา
Here is a video of me solving LeetCode problem 721, titled as Accounts Merge 🔍 Want to get better in solving LeetCode? Click here: th-cam.com/video/zlztl0oUrv0/w-d-xo.html 👾 Want to see me build games on HTML Canvas? Click here: th-cam.com/video/dJ5m87zcXn0/w-d-xo.html 🟰 Want to see me build a scientific calculator from scratch using C : th-cam.com/video/plbS1ZGusjo/w-d-xo.html 🎯 Want to see me...
No Sound Leetcode 720: Longest Word in Dictionary
มุมมอง 47 ชั่วโมงที่ผ่านมา
Here is a video of me solving LeetCode problem 720, titled as Longest Word in Dictionary 🔍 Want to get better in solving LeetCode? Click here: th-cam.com/video/zlztl0oUrv0/w-d-xo.html 👾 Want to see me build games on HTML Canvas? Click here: th-cam.com/video/dJ5m87zcXn0/w-d-xo.html 🟰 Want to see me build a scientific calculator from scratch using C : th-cam.com/video/plbS1ZGusjo/w-d-xo.html 🎯 Wa...
No Sound Leetcode 719: Find K-th Smallest Pair Distance
มุมมอง 97 ชั่วโมงที่ผ่านมา
Here is a video of me solving LeetCode problem 719, titled as Find K-th Smallest Pair Distance 🔍 Want to get better in solving LeetCode? Click here: th-cam.com/video/zlztl0oUrv0/w-d-xo.html 👾 Want to see me build games on HTML Canvas? Click here: th-cam.com/video/dJ5m87zcXn0/w-d-xo.html 🟰 Want to see me build a scientific calculator from scratch using C : th-cam.com/video/plbS1ZGusjo/w-d-xo.htm...
No Sound Leetcode 718: Maximum Length of Repeated Subarray
มุมมอง 59 ชั่วโมงที่ผ่านมา
No Sound Leetcode 718: Maximum Length of Repeated Subarray
No Sound Leetcode 717: 1-bit and 2-bit Characters
มุมมอง 279 ชั่วโมงที่ผ่านมา
No Sound Leetcode 717: 1-bit and 2-bit Characters
No Sound Leetcode 714: Best Time to Buy and Sell Stock with Transaction Fee
มุมมอง 1912 ชั่วโมงที่ผ่านมา
No Sound Leetcode 714: Best Time to Buy and Sell Stock with Transaction Fee
No Sound Leetcode 713: Subarray Product Less Than K
มุมมอง 514 ชั่วโมงที่ผ่านมา
No Sound Leetcode 713: Subarray Product Less Than K
No Sound Leetcode 712: Minimum ASCII Delete Sum for Two Strings
มุมมอง 114 ชั่วโมงที่ผ่านมา
No Sound Leetcode 712: Minimum ASCII Delete Sum for Two Strings
No Sound Leetcode 710: Random Pick with Blacklist
มุมมอง 416 ชั่วโมงที่ผ่านมา
No Sound Leetcode 710: Random Pick with Blacklist
No Sound Leetcode 709: To Lower Case
มุมมอง 3116 ชั่วโมงที่ผ่านมา
No Sound Leetcode 709: To Lower Case
No Sound Leetcode 707: Design Linked List
มุมมอง 1919 ชั่วโมงที่ผ่านมา
No Sound Leetcode 707: Design Linked List
No Sound Leetcode 706: Design HashMap
มุมมอง 1919 ชั่วโมงที่ผ่านมา
No Sound Leetcode 706: Design HashMap
No Sound Leetcode 705: Design HashSet
มุมมอง 2021 ชั่วโมงที่ผ่านมา
No Sound Leetcode 705: Design HashSet
No Sound Leetcode 704: Binary Search
มุมมอง 2921 ชั่วโมงที่ผ่านมา
No Sound Leetcode 704: Binary Search
No Sound Leetcode 703: Kth Largest Element in a Stream
มุมมอง 36วันที่ผ่านมา
No Sound Leetcode 703: Kth Largest Element in a Stream
No Sound Leetcode 701: Insert into a Binary Search Tree
มุมมอง 41วันที่ผ่านมา
No Sound Leetcode 701: Insert into a Binary Search Tree
No Sound Leetcode 700: Search in a Binary Search Tree
มุมมอง 11วันที่ผ่านมา
No Sound Leetcode 700: Search in a Binary Search Tree
No Sound Leetcode 698: Partition to K Equal Sum Subsets
มุมมอง 28วันที่ผ่านมา
No Sound Leetcode 698: Partition to K Equal Sum Subsets
No Sound Leetcode 697: Degree of an Array
มุมมอง 13วันที่ผ่านมา
No Sound Leetcode 697: Degree of an Array
No Sound Leetcode 696: Count Binary Substrings
มุมมอง 24วันที่ผ่านมา
No Sound Leetcode 696: Count Binary Substrings
No Sound Leetcode 695: Max Area of Island
มุมมอง 2วันที่ผ่านมา
No Sound Leetcode 695: Max Area of Island
No Sound Leetcode 693: Binary Number with Alternating Bits
มุมมอง 1114 วันที่ผ่านมา
No Sound Leetcode 693: Binary Number with Alternating Bits
No Sound Leetcode 692: Top K Frequent Words
มุมมอง 2514 วันที่ผ่านมา
No Sound Leetcode 692: Top K Frequent Words
You're allowed to use python heaps?
im js learner i understood your code
Great!
nice vid
Thx!
you can do it using two numbers stored. simply wildAmount and openStrict. same code as you have but you just count the wilds instead of whatever you do. after the loop you then subtract the openStrict from the wild amount and if it's greater than or equal to zero than it's valid
Your method looks completely valid, thanks for pointing it out!
Hello sir Can you answer some questions related to my career?
Of course, if I can I will.
ngl id just use a regex
good typing speed
Commentary would be nice
Yeah, I hear this a lot. Gonna do something about it at some point.
This is like watching a 12th grader who just started learning coding, please learn how to make your code concise
Sure, I guess it takes some time :)
def reverseWord(self, s:str) -> str: return self.rev
Why camelcase bro? It so strange
ILikeToUseCamelCaseDudeLoL
@ExtremeProgrammerr couse_you_are_extreme_programmer_lol
how does it work if one of the arguments is "1-i"
Because nobody would write 1+-1i
@@cosmnik472 yeah I would just use a tuple with real part and imaginary part, but tbf you could just convert 1-i to 1+-i
@@egaLwie. I would just use complex()
Yeah, 1+-1i is not the real representation, but if you check the problem description on leetcode, it is for this question. Complex() seem very nice. I'm not a full-time Python guy, thanks for pointing it out.
You forgot to hit 'run' at the end
This is not my whole monitor. You should check the full-sized video to see if I hit "run". Thanks for giving the attention, though
type annotations looks nice
You made it ez😎
😎
what is the sites name
The problem is from leetcode.com
Give us context bro, i don't know what is the problem to solve.
You have a number and a name on title, google yourself is that really hard?
That's problem #486 from leetcode.com, with the title "Predict the winner". Here is the problem description: You are given an integer array nums. Two players are playing a game with this array: player 1 and player 2. Player 1 and player 2 take turns, with player 1 starting first. Both players start the game with a score of 0. At each turn, the player takes one of the numbers from either end of the array (i.e., nums[0] or nums[nums.length - 1]) which reduces the size of the array by 1. The player adds the chosen number to their score. The game ends when there are no more elements in the array. Return true if Player 1 can win the game. If the scores of both players are equal, then player 1 is still the winner, and you should also return true. You may assume that both players are playing optimally.
C#?
I'm doing python for now. But the C# answer should be very similar, being so short in code.
Just use split function bro
You do not need it to be a class, just a function and you can get rid of the first if, transform the Fizz Elif into an if and get rid of the previous one... I'm sorry but my eyes are bleeding
Have fun not seeing another one :)
Your elbows lookin mad tasty can i have them?
Ahh white idea theme
I don't understand anything, but I'm very interested
Hope you stay around and find the will to improve then :)
That's better 👍
U crazy man u code on white !! Please reconsider your life choices 😂
What it does actually?
It's the solution to leetcode problem #375. You can check the problem description there :)
I can't see why you would need to use a list !! Can't we just perform an in-order and stop when k = 1 ? (decrement it each time we visit a node)
I don't see why not. I'm not arguing that this is the most valuable solution, yours could be better than mine :)
please upload in better quality
What application is this?
It's leetcode.com
Cool. The recursive version is def cleaner.
Absolutely
What are itertools used for?
Probably nothing :) That's what I do in general, include/import stuff and forget about it :D
@@ExtremeProgrammerralso how were you running this program?
As in, what was going on on line 237
Thanks man
Thats extreme
Glad you liked it :)
You're taking the guardian approach here which is quite cool. However you can turn all elif statements into simply if statements
Definitely right. Pinning this so everyone can see if there will be lots of comments in the future(don't think so)
@@ExtremeProgrammerr there will be. Keep going mate. You rock
@@iliqnew nicest thing I've heard for days. Thanks :)
which is best for programming low button keyboard or high button keyboard,,🤔
I prefer low for faster typing most of the time
I'm actually so sad that there is no sound, the video would be 10 times more watchable with comment ! You gave me the idea of going into canvas and try recreate some game too ! Thanks a lot !
I hear this a lot. I was planning to be a small how-to kind of a channel, but I'm now really considering recording my voice too. Thanks for the input!
Is it even pythonic way ? Solution: Consider using sets. def rm_duplicates(num:list): return list(set(nums))
sets time complexity is o(1)
I agree that operations on sets are O(1), but creating a set with n elements should result in O(n), right (Since adding elements to a set is O(1) and we are adding n elements)? This is the complexity that I have. I can agree that your solution is easy to read and performs really well, but I don't think my solution is less optimized, in general. Am I not considering something? Please comment back, I would be really happy to learn more on that.
@@ExtremeProgrammerr Yup! ur right
Great explaination
I am as amazed as the first commenter 😅😅😅
Oh man, nothing to be amazed :D
@@ExtremeProgrammerr just keep pushing sir. And never give up. Also try new things and see how you can spice it up a bit
Bro wtf did you just write… how are you this good at coding did you come out of the womb doing this
Lol let's say I'm pretty experienced in this sh*t bro. I'm around if you need help or sth
Great code, but I would suggest please explain the code in the best simplest way while you are writing it.
I'm a bit late on this answer, but just started to record some videos with commentary. Not the leetcode videos, since I'm basically making them the process of studying programming, but the project videos from now on will be commented. Hope you'll enjoy them!
It's too easy bro
Yeah man, some of them really are
Light mode ☠️
Haha, I prefer light in the morning and dark in the night.
wow! good job! i want to learn coding but its to hard for me. can you give like tipps😅😅😅❤
Sure, I can. Let's keep in touch! My first tip would be hard work and persistence :) coding is not hard but it takes time to perfect things :)
做什么的代码呢
It solves problem 47 listed in leetcode.com. You can check the problem there :)
Nice
Stay tuned, I'll add an AI opponent to the game soon :)
How tf did that work??
You can easily construct integers from strings, and strings from integers. That's how it works on Python :)
@@ExtremeProgrammerr na I mean that can be done in java but see the constraints. If it's 200 letters each it won't fit the integer limit. That's why it's a medium level
Oh yeah, you're right. I'll definitely check the limits on that one
Why did you solve that way? Does the video is supposed to be funny?
Because the language allows me to :) It's not funny but practical
Yeah, this is the reason I don't develop/write code. There's people way better than me.
I believe it can be trained :)
Quite beneficial!