- Видео 1 143
- Просмотров 104 880
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 RUclips channel.
No Sound Leetcode 691: Stickers to Spell Word
Here is a video of me solving LeetCode problem 691, titled as Stickers to Spell Word
🔍 Want to get better in solving LeetCode? Click here: ruclips.net/video/zlztl0oUrv0/видео.html
👾 Want to see me build games on HTML Canvas? Click here: ruclips.net/video/dJ5m87zcXn0/видео.html
🟰 Want to see me build a scientific calculator from scratch using C++: ruclips.net/video/plbS1ZGusjo/видео.html
🎯 Want to see me building a Tic-Tac-Toe game with C++ and added an AI opponent: ruclips.net/video/LRMDuHQqHYA/видео.html
--
Title: No Sound Leetcode 691: Stickers to Spell Word
Stickers to Spell Word,LeetCode 691,Stickers to Spell Word problem,LeetCode,LeetCode Python Easy,Stickers to Spell Word LeetCode Python,S...
🔍 Want to get better in solving LeetCode? Click here: ruclips.net/video/zlztl0oUrv0/видео.html
👾 Want to see me build games on HTML Canvas? Click here: ruclips.net/video/dJ5m87zcXn0/видео.html
🟰 Want to see me build a scientific calculator from scratch using C++: ruclips.net/video/plbS1ZGusjo/видео.html
🎯 Want to see me building a Tic-Tac-Toe game with C++ and added an AI opponent: ruclips.net/video/LRMDuHQqHYA/видео.html
--
Title: No Sound Leetcode 691: Stickers to Spell Word
Stickers to Spell Word,LeetCode 691,Stickers to Spell Word problem,LeetCode,LeetCode Python Easy,Stickers to Spell Word LeetCode Python,S...
Просмотров: 2
Видео
No Sound Leetcode 690: Employee Importance
Просмотров 818 часов назад
Here is a video of me solving LeetCode problem 690, titled as Employee Importance 🔍 Want to get better in solving LeetCode? Click here: ruclips.net/video/zlztl0oUrv0/видео.html 👾 Want to see me build games on HTML Canvas? Click here: ruclips.net/video/dJ5m87zcXn0/видео.html 🟰 Want to see me build a scientific calculator from scratch using C : ruclips.net/video/plbS1ZGusjo/видео.html 🎯 Want to s...
No Sound Leetcode 689: Maximum Sum of 3 Non-Overlapping Subarrays
Просмотров 52 часа назад
Here is a video of me solving LeetCode problem 689, titled as Maximum Sum of 3 Non-Overlapping Subarrays 🔍 Want to get better in solving LeetCode? Click here: ruclips.net/video/zlztl0oUrv0/видео.html 👾 Want to see me build games on HTML Canvas? Click here: ruclips.net/video/dJ5m87zcXn0/видео.html 🟰 Want to see me build a scientific calculator from scratch using C : ruclips.net/video/plbS1ZGusjo...
No Sound Leetcode 688: Knight Probability in Chessboard
Просмотров 102 часа назад
Here is a video of me solving LeetCode problem 688, titled as Knight Probability in Chessboard 🔍 Want to get better in solving LeetCode? Click here: ruclips.net/video/zlztl0oUrv0/видео.html 👾 Want to see me build games on HTML Canvas? Click here: ruclips.net/video/dJ5m87zcXn0/видео.html 🟰 Want to see me build a scientific calculator from scratch using C : ruclips.net/video/plbS1ZGusjo/видео.htm...
No Sound Leetcode 687: Longest Univalue Path
Просмотров 104 часа назад
Here is a video of me solving LeetCode problem 687, titled as Longest Univalue Path 🔍 Want to get better in solving LeetCode? Click here: ruclips.net/video/zlztl0oUrv0/видео.html 👾 Want to see me build games on HTML Canvas? Click here: ruclips.net/video/dJ5m87zcXn0/видео.html 🟰 Want to see me build a scientific calculator from scratch using C : ruclips.net/video/plbS1ZGusjo/видео.html 🎯 Want to...
No Sound Leetcode 686: Repeated String Match
Просмотров 124 часа назад
Here is a video of me solving LeetCode problem 686, titled as Repeated String Match 🔍 Want to get better in solving LeetCode? Click here: ruclips.net/video/zlztl0oUrv0/видео.html 👾 Want to see me build games on HTML Canvas? Click here: ruclips.net/video/dJ5m87zcXn0/видео.html 🟰 Want to see me build a scientific calculator from scratch using C : ruclips.net/video/plbS1ZGusjo/видео.html 🎯 Want to...
No Sound Leetcode 685: Redundant Connection II
Просмотров 67 часов назад
Here is a video of me solving LeetCode problem 685, titled as Redundant Connection II 🔍 Want to get better in solving LeetCode? Click here: ruclips.net/video/zlztl0oUrv0/видео.html 👾 Want to see me build games on HTML Canvas? Click here: ruclips.net/video/dJ5m87zcXn0/видео.html 🟰 Want to see me build a scientific calculator from scratch using C : ruclips.net/video/plbS1ZGusjo/видео.html 🎯 Want ...
No Sound Leetcode 684: Redundant Connection
Просмотров 147 часов назад
No Sound Leetcode 684: Redundant Connection
No Sound Leetcode 680: Valid Palindrome II
Просмотров 149 часов назад
No Sound Leetcode 680: Valid Palindrome II
No Sound Leetcode 678: Valid Parenthesis String
Просмотров 69 часов назад
No Sound Leetcode 678: Valid Parenthesis String
No Sound Leetcode 676: Implement Magic Dictionary
Просмотров 412 часов назад
No Sound Leetcode 676: Implement Magic Dictionary
No Sound Leetcode 675: Cut Off Trees for Golf Event
Просмотров 2412 часов назад
No Sound Leetcode 675: Cut Off Trees for Golf Event
No Sound Leetcode 674: Longest Continuous Increasing Subsequence
Просмотров 1612 часов назад
No Sound Leetcode 674: Longest Continuous Increasing Subsequence
No Sound Leetcode 673: Number of Longest Increasing Subsequence
Просмотров 914 часов назад
No Sound Leetcode 673: Number of Longest Increasing Subsequence
No Sound Leetcode 672: Bulb Switcher II
Просмотров 1114 часов назад
No Sound Leetcode 672: Bulb Switcher II
No Sound Leetcode 671: Second Minimum Node in a Binary Tree
Просмотров 814 часов назад
No Sound Leetcode 671: Second Minimum Node in a Binary Tree
No Sound Leetcode 669: Trim a Binary Search Tree
Просмотров 7716 часов назад
No Sound Leetcode 669: Trim a Binary Search Tree
No Sound Leetcode 668: Kth Smallest Number in Multiplication Table
Просмотров 416 часов назад
No Sound Leetcode 668: Kth Smallest Number in Multiplication Table
No Sound Leetcode 667: Beautiful Arrangement II
Просмотров 716 часов назад
No Sound Leetcode 667: Beautiful Arrangement II
No Sound Leetcode 665: Non-decreasing Array
Просмотров 2016 часов назад
No Sound Leetcode 665: Non-decreasing Array
No Sound Leetcode 664: Strange Printer
Просмотров 1819 часов назад
No Sound Leetcode 664: Strange Printer
No Sound Leetcode 662: Maximum Width of Binary Tree
Просмотров 819 часов назад
No Sound Leetcode 662: Maximum Width of Binary Tree
No Sound Leetcode 661: Image Smoother
Просмотров 919 часов назад
No Sound Leetcode 661: Image Smoother
No Sound Leetcode 659: Split Array into Consecutive Subsequences
Просмотров 619 часов назад
No Sound Leetcode 659: Split Array into Consecutive Subsequences
No Sound Leetcode 658: Find K Closest Elements
Просмотров 321 час назад
No Sound Leetcode 658: Find K Closest Elements
No Sound Leetcode 657: Robot Return to Origin
Просмотров 1821 час назад
No Sound Leetcode 657: Robot Return to Origin
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!
thank you! It helped me to understand what was wrong with my code :)
Happy to help!
Upgrade your mic if you want this to be asmr lol static is unbearable
Definitely will do. I was not sure if people would even open up the video, and your comment shows that they are. So it's on the list. Thanks for the feedback.