![ExtremeProgrammer](/img/default-banner.jpg)
- 1 068
- 95 686
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 UA-cam channel.
No Sound Leetcode 647: Palindromic Substrings
Here is a video of me solving LeetCode problem 647, titled as Palindromic Substrings
🔍 Want to get better in solving LeetCode? Click here: ua-cam.com/video/zlztl0oUrv0/v-deo.html
👾 Want to see me build games on HTML Canvas? Click here: ua-cam.com/video/dJ5m87zcXn0/v-deo.html
🟰 Want to see me build a scientific calculator from scratch using C++: ua-cam.com/video/plbS1ZGusjo/v-deo.html
🎯 Want to see me building a Tic-Tac-Toe game with C++ and added an AI opponent: ua-cam.com/video/LRMDuHQqHYA/v-deo.html
--
Title: No Sound Leetcode 647: Palindromic Substrings
Palindromic Substrings,LeetCode 647,Palindromic Substrings problem,LeetCode,LeetCode Python Easy,Palindromic Substrings LeetCode Python,Palindromic Substrings LeetCode,LeetCode Python Solutions,Palindromic Substrings Solution,Palindromic Substrings Solution Python,How to get better in LeetCode,LeetCode 647 solution,LeetCode 647 Python,LeetCode 647 Palindromic Substrings solution Python,647 Palindromic Substrings,LeetCode Solutions,ExtremeProgrammer,ExtremeProgrammerr
🔍 Want to get better in solving LeetCode? Click here: ua-cam.com/video/zlztl0oUrv0/v-deo.html
👾 Want to see me build games on HTML Canvas? Click here: ua-cam.com/video/dJ5m87zcXn0/v-deo.html
🟰 Want to see me build a scientific calculator from scratch using C++: ua-cam.com/video/plbS1ZGusjo/v-deo.html
🎯 Want to see me building a Tic-Tac-Toe game with C++ and added an AI opponent: ua-cam.com/video/LRMDuHQqHYA/v-deo.html
--
Title: No Sound Leetcode 647: Palindromic Substrings
Palindromic Substrings,LeetCode 647,Palindromic Substrings problem,LeetCode,LeetCode Python Easy,Palindromic Substrings LeetCode Python,Palindromic Substrings LeetCode,LeetCode Python Solutions,Palindromic Substrings Solution,Palindromic Substrings Solution Python,How to get better in LeetCode,LeetCode 647 solution,LeetCode 647 Python,LeetCode 647 Palindromic Substrings solution Python,647 Palindromic Substrings,LeetCode Solutions,ExtremeProgrammer,ExtremeProgrammerr
Переглядів: 1
Відео
No Sound Leetcode 646: Maximum Length of Pair Chain
Переглядів 17 годин тому
Here is a video of me solving LeetCode problem 646, titled as Maximum Length of Pair Chain 🔍 Want to get better in solving LeetCode? Click here: ua-cam.com/video/zlztl0oUrv0/v-deo.html 👾 Want to see me build games on HTML Canvas? Click here: ua-cam.com/video/dJ5m87zcXn0/v-deo.html 🟰 Want to see me build a scientific calculator from scratch using C : ua-cam.com/video/plbS1ZGusjo/v-deo.html 🎯 Wan...
No Sound Leetcode 645: Set Mismatch
Переглядів 313 годин тому
Here is a video of me solving LeetCode problem 645, titled as Set Mismatch 🔍 Want to get better in solving LeetCode? Click here: ua-cam.com/video/zlztl0oUrv0/v-deo.html 👾 Want to see me build games on HTML Canvas? Click here: ua-cam.com/video/dJ5m87zcXn0/v-deo.html 🟰 Want to see me build a scientific calculator from scratch using C : ua-cam.com/video/plbS1ZGusjo/v-deo.html 🎯 Want to see me buil...
No Sound Leetcode 643: Maximum Average Subarray I
Переглядів 419 годин тому
Here is a video of me solving LeetCode problem 643, titled as Maximum Average Subarray I 🔍 Want to get better in solving LeetCode? Click here: ua-cam.com/video/zlztl0oUrv0/v-deo.html 👾 Want to see me build games on HTML Canvas? Click here: ua-cam.com/video/dJ5m87zcXn0/v-deo.html 🟰 Want to see me build a scientific calculator from scratch using C : ua-cam.com/video/plbS1ZGusjo/v-deo.html 🎯 Want ...
No Sound Leetcode 641: Design Circular Deque
Переглядів 52 години тому
Here is a video of me solving LeetCode problem 641, titled as Design Circular Deque 🔍 Want to get better in solving LeetCode? Click here: ua-cam.com/video/zlztl0oUrv0/v-deo.html 👾 Want to see me build games on HTML Canvas? Click here: ua-cam.com/video/dJ5m87zcXn0/v-deo.html 🟰 Want to see me build a scientific calculator from scratch using C : ua-cam.com/video/plbS1ZGusjo/v-deo.html 🎯 Want to se...
No Sound Leetcode 640: Solve the Equation
Переглядів 82 години тому
Here is a video of me solving LeetCode problem 640, titled as Solve the Equation 🔍 Want to get better in solving LeetCode? Click here: ua-cam.com/video/zlztl0oUrv0/v-deo.html 👾 Want to see me build games on HTML Canvas? Click here: ua-cam.com/video/dJ5m87zcXn0/v-deo.html 🟰 Want to see me build a scientific calculator from scratch using C : ua-cam.com/video/plbS1ZGusjo/v-deo.html 🎯 Want to see m...
No Sound Leetcode 639: Decode Ways II
Переглядів 32 години тому
Here is a video of me solving LeetCode problem 639, titled as Decode Ways II 🔍 Want to get better in solving LeetCode? Click here: ua-cam.com/video/zlztl0oUrv0/v-deo.html 👾 Want to see me build games on HTML Canvas? Click here: ua-cam.com/video/dJ5m87zcXn0/v-deo.html 🟰 Want to see me build a scientific calculator from scratch using C : ua-cam.com/video/plbS1ZGusjo/v-deo.html 🎯 Want to see me bu...
No Sound Leetcode 638: Shopping Offers
Переглядів 22 години тому
Here is a video of me solving LeetCode problem 638, titled as Shopping Offers 🔍 Want to get better in solving LeetCode? Click here: ua-cam.com/video/zlztl0oUrv0/v-deo.html 👾 Want to see me build games on HTML Canvas? Click here: ua-cam.com/video/dJ5m87zcXn0/v-deo.html 🟰 Want to see me build a scientific calculator from scratch using C : ua-cam.com/video/plbS1ZGusjo/v-deo.html 🎯 Want to see me b...
No Sound Leetcode 637: Average of Levels in Binary Tree
Переглядів 24 години тому
No Sound Leetcode 637: Average of Levels in Binary Tree
No Sound Leetcode 636: Exclusive Time of Functions
Переглядів 24 години тому
No Sound Leetcode 636: Exclusive Time of Functions
No Sound Leetcode 633: Sum of Square Numbers
Переглядів 44 години тому
No Sound Leetcode 633: Sum of Square Numbers
No Sound Leetcode 632: Smallest Range Covering Elements from K Lists
Переглядів 114 години тому
No Sound Leetcode 632: Smallest Range Covering Elements from K Lists
No Sound Leetcode 630: Course Schedule III
Переглядів 67 годин тому
No Sound Leetcode 630: Course Schedule III
No Sound Leetcode 629: K Inverse Pairs Array
Переглядів 137 годин тому
No Sound Leetcode 629: K Inverse Pairs Array
No Sound Leetcode 628: Maximum Product of Three Numbers
Переглядів 37 годин тому
No Sound Leetcode 628: Maximum Product of Three Numbers
No Sound Leetcode 624: Maximum Distance in Array
Переглядів 39 годин тому
No Sound Leetcode 624: Maximum Distance in Array
No Sound Leetcode 623: Add One Row to Tree
Переглядів 109 годин тому
No Sound Leetcode 623: Add One Row to Tree
No Sound Leetcode 622: Design Circular Queue
Переглядів 319 годин тому
No Sound Leetcode 622: Design Circular Queue
No Sound Leetcode 621: Task Scheduler
Переглядів 4212 годин тому
No Sound Leetcode 621: Task Scheduler
No Sound Leetcode 620: Not Boring Moves
Переглядів 2212 годин тому
No Sound Leetcode 620: Not Boring Moves
No Sound Leetcode 619: Biggest Single Number
Переглядів 2612 годин тому
No Sound Leetcode 619: Biggest Single Number
No Sound Leetcode 617: Merge Two Binary Trees
Переглядів 912 годин тому
No Sound Leetcode 617: Merge Two Binary Trees
No Sound Leetcode 611: Valid Triangle Number
Переглядів 1714 годин тому
No Sound Leetcode 611: Valid Triangle Number
No Sound Leetcode 610: Triangle Judgement
Переглядів 514 годин тому
No Sound Leetcode 610: Triangle Judgement
No Sound Leetcode 609: Find Duplicate File in System
Переглядів 714 годин тому
No Sound Leetcode 609: Find Duplicate File in System
No Sound Leetcode 606: Construct String from Binary Tree
Переглядів 416 годин тому
No Sound Leetcode 606: Construct String from Binary Tree
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.
I recommend zooming in and making the code more appearing. And putting an attractive thumbnail would help!
I'm considering re-making the thumbnails. Also, I thought the code was read-able until now, and definitely will do something about this in my future videos. Your comment is very helpful and constructive, thanks a lot!
@@ExtremeProgrammerr I'm glad i helped!