📝 PK'S LEETCODE CHEAT SHEET 👉 piratekingdom.com/leetcode ▶ How to Use LeetCode Effectively 👉 kzitem.info/news/bejne/wmOqznxvmmuQi3o
@thedevguild7525
2 жыл бұрын
Wow you even have your own site! What tech stack you code it with?
@PIRATEKINGDOM
2 жыл бұрын
@@thedevguild7525 squarespace website builder! ;)
@mrKnown01
2 жыл бұрын
Hey bro well I wanted to know if you intentionally put this channel name as Pirate King because basically Pirates have a CAPTAIN.
@PIRATEKINGDOM
2 жыл бұрын
@Anonymous I'm a One Piece fan
@mrKnown01
2 жыл бұрын
@@PIRATEKINGDOM I got just now to know about this anime. So what's your TREASURE for which you started journey? Only if interested.
@TonyDiCroce
2 жыл бұрын
C++ has deque too. Also leftmost binary search is lower_bound() in c++.
@keshavakumar9828
Жыл бұрын
I have been following your advice for practising leetcode for the last 4 months, and it's working wonderfully for me. Thank you for this short-hand guide, will use it for future problem solving.
@shotime3241
2 жыл бұрын
FYI “leftmost binary search” is actually called a left bisection. Python actually offers a library that does both left and right bisection - though you might not be allowed to use it during an interview
@bossysmaxx3327
2 жыл бұрын
I just wrote tets randomly on his video and the guy just replied to it, tf
@RuturajZadbuke
Жыл бұрын
I have interviewed in almost all FAANG companies and many others and am ex FAANG. I assure you that you can use bisect no matter what given you can explain what bisect does and how it does it properly to the interviewing engineer. Same with deque, doesn't matter if the engineer doesn't know what a deque is as long as you can give a 2 to 5 minute overview on deck and why using a deque would be suitable for that specific problem. Interviews are equally about communicating your solutions properly to even folks with non-technical background as you might be required to do this at your real world SWE job.
@mr.fabulous5165
2 жыл бұрын
Hey Daniel, thank you for you advice, I tried ask people online, more specifically on Stack overflow. It takes me a little bit time to figure out the right format of how to post a question a stack overflow. But once i did it just blow my mind that how fast other programer replied me and literally faster than asking my classmate or tutors! Thank you for letting me to pick your brain again! Really happy to have such strong tool in my toolbox now and you deserve 1 million subs!
@oanaghicajanucristina
7 ай бұрын
OMG, SUBSCRIBED. the best video ever, and also your website is so useful, with your resources i have hope that i will be accepted to one of the internships i am applying. THANK YOU A LOT!
@darkdudironaji
2 жыл бұрын
I am about to graduate and needed this so bad. Thank you so much!
@david-hasselhoff7483
Жыл бұрын
Dude, this is the absolute gold of gold. You're the man, thank you so much!!
@thedevguild7525
2 жыл бұрын
Wow, this channel also include educational content, sweet! The explanations not only nail it, but it is also concise and makes tough concept easy to pick up! Though I am not on the lookout for job, been practicing DSA to improve my skillset and at the same time seek some excitement in life!
@bossysmaxx3327
2 жыл бұрын
I just wrote tets randomly on his video and the guy just replied to it, tf
@philbert5838
2 жыл бұрын
Your study guide is very timely for me, I was trying to look for something that will help me after failing my interviews. You really inspire me pk! Thanks a lot!
@bossysmaxx3327
2 жыл бұрын
I just wrote tets randomly on his video and the guy just replied to it, tf
@nikeshsingh4787
2 жыл бұрын
Love the channel name. Glad to connect with fellow pirates!!
@khoaanh7375
Жыл бұрын
That is a rly nice edit, thanks for your effort in this community.
@mmm-ie5ws
7 ай бұрын
amazing video, thanks. I subbed so quickly.
@leoncvetkovski4679
2 жыл бұрын
Amazing, thank you so much! I really felt like summaries of the DS&A concepts were missing in the online education space. Super helpful.
@ethical-hack
2 жыл бұрын
Thank you for the wonderful Video PK!!!
@nobugaming
2 жыл бұрын
You can adapt leftmost to after leftmost by changing m to (l+r+1)//2 and updating l to l=m and updating r to r=m-1. This is useful for finding the first element that fails some condition
@bossysmaxx3327
2 жыл бұрын
I just wrote tets randomly on his video and the guy just replied to it, tf
@sushenjamwal
Жыл бұрын
can you pls explain with example?
@michaelyu6732
4 ай бұрын
The true technical interview savior
@videolosss
2 жыл бұрын
Great advice. Thanks for your generosity. Your humour an added bonus.
@carlosx7777
2 жыл бұрын
you are great!!!! i think this will help me a lot, is way more structured than just reading Cracking the coding interview or going without a plan on leetCode
@AniruddhaShende-zy7op
Жыл бұрын
great video and i am happy that he didn't give false hope to beginners by saying that this is enough for interviews instead he said that this can be kept handy and can be used by a beginner to boost his/her journey of leetcoding !!!!!
@chrisw9597
2 жыл бұрын
this is not a gold mine, this is a diamond mine!! Thanks for the cheat sheet!
@Onigirii
2 жыл бұрын
Thank you! This is exactly what I need right now
@stanleylinsy98
2 жыл бұрын
amazing video. I will be taking data structure and algorithm class in the next 6 months. Content like this will be of great help. Thank you
@taco564
2 жыл бұрын
Thanks for the cheat sheet. It's very helpful!
@zahaanmahajan1606
2 жыл бұрын
get this man a medal.
@nipunshah1373
12 күн бұрын
Best ever Quick Tips for Problem Solving with Python anyone needs. No here and there, to the point +1 :)
@vijethkashyap151
2 ай бұрын
Man this was beautiful!! ❤
@raniel0511
2 жыл бұрын
"No email" "No bullshit like that" won me, I mean I already love your content but it's good to hear that.
@schan263
Жыл бұрын
I am not looking for a job now but I still do leetcode almost everyday. Today is Christmas day and I did 1 hard and 1 medium. I like to do leetcode before I play video games. Will do more if I have time later tonight after I played video games.
@OwenWu-f9t
7 ай бұрын
it's good to know what data structure to use when, but that's just the beginning and only gets you passing like 1/4 of the test cases. A lot of these hard questions require familiarity with implementation and clever tricks that most people wouldn't think of in an interview. You have to be familiar with the syntax of your language and all its functions and datatypes, etc.
@english51
2 жыл бұрын
Thanks, hopefully will have cpp template soon
@dawkaka
Жыл бұрын
I clicked on this video thinking it's just another click bait, but it's actually good very helpful.
@enip239
2 жыл бұрын
This video is too good to be like a cheat for preparing leetcode. So many information compress in such one video. Love it.
@bossysmaxx3327
2 жыл бұрын
I just wrote tets randomly on his video and the guy just replied to it, tf
@sw6273
2 жыл бұрын
ありがとうございます!大変助かります!
@PIRATEKINGDOM
2 жыл бұрын
Doumo!
@궁그그미
2 жыл бұрын
영상에 삼색스웻셔츠 보고 혹시 한국인,,? 했는데 맞으시네용! 좋은 정보공유 너무 감사드립니다!
@ladyv890
2 жыл бұрын
Thank you! for the lc help! Also like your sweater :-)
@lazybot71
2 жыл бұрын
It's really good PK! ❤❤
@cunghocthuattoan7869
2 жыл бұрын
Thank you so much!! Appreciate your help!
@DeepakJadiwal
2 жыл бұрын
Good, I also start making this type of video 😊😊😊😊
@tilekzholdoshbek726
Жыл бұрын
okay nice start with providing website, im subscribing
@hibashi.-.4784
Жыл бұрын
You are just awesome !!! Thankkk uuu soooo muchhh for sharing this cheatsheet . i'm a second year computer science student , few weeks ago i started to leetcode because of your advices and now am getting better at coding :)
@leliarubiano6392
2 жыл бұрын
You should make a course for interview's questions you are amazing at explaining complicated things.
@Whatthetrash
Жыл бұрын
PK, I had a question. I'm using your technique of using a deque for a stack (append, pop), queue (append, popleft) and linked list (append, pop, appendleft, popleft). I'm a bit confused, though. Stack and queue have certain operations associated with them (stack has push, pop and peek and queue has enqueue and dequeue ) -- but what do linked lists have? I haven't been able to find anything linked lists are required to have. So, I have 2 questions please: 1.) Do linked lists have certain expected operations and 2.) Why is a deque the ideal data structure to implement those operations with. If you don't have the time to answer, a point in the right direction would be appreciated. Thanks!
@PIRATEKINGDOM
Жыл бұрын
1. I’d say addfirst, removefirst, addlast, and removelast. 2. Deque already has those operations implemented within. It’s not exactly an ideal data structure but a working alternative. Check piratekingdom.com/leetcode
@Whatthetrash
Жыл бұрын
@@PIRATEKINGDOM Ah, okay. I see. Thanks so much for taking the time to break that down. Much respect! :)
@mikhailglazkov6075
2 жыл бұрын
its my first sem learning dsa with java hope all goes well till end and i get placed at MAANG
@brijendrasai1513
Жыл бұрын
You're god among men for creating that website
@faisalalghamdi2066
2 жыл бұрын
Thank you so much sir! This is extremely useful.
@HuGzHa
2 жыл бұрын
this is extremely useful, thanks pk ❤
@Whatthetrash
2 жыл бұрын
This is awesome! Thank you for this! :)
@mengisi
2 жыл бұрын
Request ya, create video approach of TDD (when use and when TDD is bad).
@가팔르아이수
2 жыл бұрын
Maaan that's really amazing.Thanks a lot for all!👏🏻👏🏻👏🏻🆒️😃
@candichiu7850
2 жыл бұрын
Thank you! This is really helpful.
@SandraPlamenats
2 жыл бұрын
Thank you! You have earned your place in heaven!
@SAI-kg6bb
Жыл бұрын
I agree bro, you reflected me in few points.
@thomashaury6651
Жыл бұрын
In a world of swe KZitemrs that are greedy get rich quick scheme pitchers trying to sell you their leetClones (How many algoSomethings are there?) You are a breathe of fresh air. Stay awesome.
@Deekschool
Ай бұрын
Thank you so much😊
@Shawn.Tanaka
2 жыл бұрын
Thank you for teaching! Off topic: what brand is that long sleeve? It’s nice!
@michaeltruong405
Жыл бұрын
Super helpful thanks!
@joshhitech
2 жыл бұрын
I really appreciate the effort you put into this. Thanks a lot!
@surya8985
2 жыл бұрын
Thanks pk 😊 most of the tips u told,I faced them recently and they are very interesting
@vincent3311
2 жыл бұрын
Thanks senpai, im very grateful the person like you is exist lol
@iamnoob7593
3 ай бұрын
Thanks man , QuickSelect is necessary for interviews?
@genjimccorkle5518
2 жыл бұрын
Mmmm. Log time. I am taking DS&A at school right now so this video was perfectly timed. But seriously, you are the best youtube tutor thus far. Your coding tips in this video alone are phenomenal. I hope to see more complex subjects broken down into simple terms (plus good practice tips!) as most videos on youtube just cover the basic stuff and not even explain them like you have. Your video was only eight minutes but I came away with a much better understanding of DS&A after watching it! Plus I mainly use Python, Java, and Javascript so thats even more convenient that your code is in Python and Java.
@bossysmaxx3327
2 жыл бұрын
I just wrote tets randomly on his video and the guy just replied to it, tf
@SidTrip
Жыл бұрын
Nice video! Subscribed!
@21doyourthing
2 жыл бұрын
nice! please do more of these
@mjmikaelson
Жыл бұрын
Thank you for sharing!
@chilly2171
2 жыл бұрын
c++ has deque as well. I recommend c++
@chilly2171
Жыл бұрын
deques cannot be used to replace a linked list. you can't store references with deque and link it with other data structures. it is not possible to remove from the middle of a deque in constant time.
@PIRATEKINGDOM
Жыл бұрын
True, but I talked about it in the limited usage of add/remove first/last which is suffient in most lc problems.
@jayono7ciwa
2 жыл бұрын
Appreciate this Video dude 🔥
@flocela
5 ай бұрын
I love your hair.
@thepodfunnel
2 жыл бұрын
Amazing dude!
@brajagopalmukherjee1588
2 жыл бұрын
Thanks for this man
@ftsvtcaratfacethesun4981
2 жыл бұрын
I use JavaScript. Tried to leetcode. It’s so hard. I don’t even understand the task itself. It’s double hard to understand because English isn’t my tongue language and not event second language, also I’m without tech background. And words like time complexity etc I’m so dizzy. Should learn a lot of things 🥺
@CostaKazistov
2 жыл бұрын
Best way to ease into LeetCode is by first getting some good practice on Codewars and Exercism. At least that's what worked for me. I was in same situation as you (mostly JS + not a native speaker of English).
@PIRATEKINGDOM
2 жыл бұрын
JS isn’t the most leetcode-friendly language :(
@ftsvtcaratfacethesun4981
2 жыл бұрын
@@CostaKazistov oh thank you for sharing
@ftsvtcaratfacethesun4981
2 жыл бұрын
@@PIRATEKINGDOM oh I see. Maybe will try to learn python in the future. Thank you for detailed information and what you shared on your website.
@kiko7247
2 жыл бұрын
Same situation as you, so I learnt C and Python and I can leetcode with no problem. Honestly, C was what I was missing. JavaScript, as much as I love it, doesn't force you to understand what's going on under the hood, the true meaning of programming and to think like a programmer. My best advice would be learn C or Python, with the free Harvard course "CS50" (intro to computer science), because it blends theory with practice, you can do it at your own pace, and most importantly it is structured. There are assessments and a final project of your choice.
@arturschaefer
11 ай бұрын
Amazing tips! 🚀
@fraction37
2 жыл бұрын
You're a good teacher! You should make more videos like this one!
@isma5627
2 жыл бұрын
The GOAT itself.
@Dhruvkuku
2 жыл бұрын
Your t-shirt look cool pk
@Tom4tom199e
2 жыл бұрын
TYVMMM it's so neet thanks for the work :3
@meoya_gnauh
2 жыл бұрын
Thanks!
@sagestudy
2 жыл бұрын
Please Teach DSA using Python 3, with your editing it will be fun to learn and grasp the concept. And this video is really helpful.
@egoworks5611
2 жыл бұрын
Great content Sir
@4hmed-2jz
Ай бұрын
thought it was lee kwang-soo for a sec from the thumbnail lmao
@darshanjain9658
2 жыл бұрын
Hey! Many people/youtubers/influencers have been suggesting to take up the CS50's introduction to Computer Science by HARVARD UNIVERSITY before entering into college. I would like to take your suggestion if I should go with this course or do something else like learning a language (python) or something like data structures and algorithms, I know CS50 would include it but just wanted to confirm if something else is more important at the moment (high school graduate). And if I should take up the 2nd option please let me know the importance of CS50 if I should take it up in the future...
@PIRATEKINGDOM
2 жыл бұрын
Cs50 is a good start
@darshanjain9658
2 жыл бұрын
@@PIRATEKINGDOM Thank you so much! But would you suggest a different way to start?
@darshanjain9658
2 жыл бұрын
@@abhisheknandann cool..! Thanks a lot!
@MayurrWagh
2 жыл бұрын
thankyou i am confused between c++ and java decided c++ to start with but after this video I will continue dsa in java and python only amazing video bring more such tricks video for dsa
@dsa2441
Жыл бұрын
Thanks for the tips, very interesting. Btw what about C++
@mridul1075
Жыл бұрын
helpful but you should also provide it in c++
@batmanlovesjokerr
Жыл бұрын
make a similar video for c++ users
@gerardom894
Жыл бұрын
Is there a follow up for this list?
@PIRATEKINGDOM
Жыл бұрын
nope
@imtheone007
2 жыл бұрын
Super helpful video 🔥🔥🔥
@dr4ks
Жыл бұрын
Just Excellent
@zongxun7118
2 жыл бұрын
Amazing video 😍😍
@mjmikaelson
Жыл бұрын
Very nice!
@huytranquang6230
2 жыл бұрын
Great works
@arno.claude
2 жыл бұрын
Wow, thank you!
@NamanSaxenaa
5 күн бұрын
Is it "DEQUE" or "De-QUEUE" ?
@kanthikiran5825
Жыл бұрын
Oreva Monkey D Luffy, Kaijokuvoni naru othokoda, The website is very helpful
@aaronstark171
2 жыл бұрын
thanks bro!
@hoangnguyendinh1107
2 жыл бұрын
Can you give some tips on writing Java code short and clean and less bug? I always find my code buggy when doing hard problems like having a lot complex logic
@douglascheng9794
2 жыл бұрын
appreciate this!
@darshanjain9658
2 жыл бұрын
Excellent videos..! I have just graduated high school and before going to college I'm really confused on what kind of online courses should I take up... One side of me has an interest in hacking so I took up a course on ethical hacking with python but on the other side I'm not sure if I should take up a career in hacking or software development or so on and I'm really really confused. I would really appreciate if you could let me know what kind of courses I'm supposed to do at this stage.
@PIRATEKINGDOM
2 жыл бұрын
I suggest you learn how to build websites and taking courses on data structures and algorithms
@darshanjain9658
2 жыл бұрын
@@PIRATEKINGDOM okay thanks a lot...! But then if I'm interested in cyber security in the future will this help me?
@PIRATEKINGDOM
2 жыл бұрын
@@darshanjain9658 it’ll still help... I believe. Sorry, I’m not a cyber security expert
@darshanjain9658
2 жыл бұрын
@@PIRATEKINGDOM okayyy thanks a lot for the reply :))
Пікірлер: 224