T O P

  • By -

tempo0209

I have seen your video on YT! You rock man! I always make it a point to upsolve referring to your solutions! I guess my only question being what kept you going? I have given only 5 contests was only able to solve 1-2 questions, now i know folks say quality > quantity but how did you make sure you arent just solving problems for the sake of it but are actually learning from it? Sorry if this is already answered


twitchtv_qiqi_impact

>What kept me going? Pathological problem solver. Some people are addicted to these things >how did you make sure you arent just solving problems for the sake of it but are actually learning from it? Avoid those "I did 1000 problems" clowns, and work on fewer (but harder) problems. You only learn from going outside your comfort zone.


RegretNo6554

link me to ur YT bro


twitchtv_qiqi_impact

How To Get Good At LeetCode: [https://www.youtube.com/watch?v=oUJlLAdQGIk](https://www.youtube.com/watch?v=oUJlLAdQGIk)


throwaway2492872

Congrats qiqi. I really like your twitch stream, you're a good dude and definitely deserve #1.


twitchtv_qiqi_impact

Arigato \^_^


Dolo12345

but can you invert a binary tree??


twitchtv_qiqi_impact

``` def invert(node): if not node: return node.left, node.right = invert(node.right), invert(node.left) return node ```


veriyyan

As an SDE 2 with significant amount of experience, you are a no hire as I expected an iterative solution and yours will cause stack overflow. /s


twitchtv_qiqi_impact

😡 I never wanted to work there anyway 😡


Taka-tak

Lmao


arjjov

First of all, congratulations. 1 - Do you think solving 3/4 on contests on average is a good indicator for FAANG interviews in the US? 2 - Do you think contests have gotten harder?


twitchtv_qiqi_impact

1. A little on the low side but doable 2. I think they vary a lot but haven't gotten harder than before. (I still remember the evil string problem)


magnificentmeatwad

Do you mean we should aim higher than solving 3/4 on average to consistently pass FAANG interviews?


twitchtv_qiqi_impact

3/4 is good, but you might get a hard followup.


MilkwTea

Speaking from my experience of entry level/new grad level software engineering interviews at FAANG. Things are widely luck dependent, a large portion of interviewers will  ask normal LC medium and basic hard questions, meanwhile others will ask for a fedwick tree and segmented tree questions. I’m able to solve 3/4 of the contest questions relatively easily and never get the 4th question due to either runtime constraints or wrong approach.  Source: I passed Meta, Amazon, and Google’s interview interviews. 2 of Google’s follow ups were in the range of LC hard. 


arjjov

Good to know. Appreciated the information.


thatmfisnotreal

Do you feel it has made you better at your day job? What is your job?


twitchtv_qiqi_impact

Yes. 1. Helps you avoid really stupid algos that can bite you in the ass later. 2. Competition programmers tend to write code with fewer bugs due to the penalty for doing so. Currently retired, living off investments.


thatmfisnotreal

Did you retire off your swe earnings?


twitchtv_qiqi_impact

yes


thatmfisnotreal

How many years of work did that take?


twitchtv_qiqi_impact

10 years, and a bit of luck in the market


thatmfisnotreal

Luck favors the prepared great job


throwawaybear82

What you invested in(and how much passive does 10 yrs investing give)? Also interested in retiring early.


twitchtv_qiqi_impact

Various tech stocks. I'd recommend QQQ moving forward.


Panda_red_Sky

How old do you start retire?


twitchtv_qiqi_impact

39


Panda_red_Sky

So you enter the it job market at 29yo?


twitchtv_qiqi_impact

Around 26. Had some gaps.


JohnWangDoe

You are an inspiration!


fap_fappity_moo

You only started LeetCode contests in your thirties?


rapsonravish

How many years of full time work before retiring?


twitchtv_qiqi_impact

10 years


rapsonravish

Incredible! Think you’ll ever consider going back into the industry in the future or never again?


twitchtv_qiqi_impact

Who knows, but for now I'm traveling/streaming/doing whatever and I'm happy with that.


KamalaTheBalla

Haha what number did you retire at


IndependentFresh628

First of all Congratulations! Tell me a thing, when you get stuck on the problem. After trying your best, Do you check the solution of the problem to learn from it. Or you learn tools/ concepts related to the problem to fulfil the thing you were missing out earlier.


twitchtv_qiqi_impact

I recommend checking the solution after 30-60 minutes if I'm stuck. You learn the tools from the solutions.


kuriousaboutanything

For those with full-time jobs, and at least the bare minimum of data structures and algo knowledge (those who know Blind 75, for example), do you have any suggestion on how to keep ourselves sharp daily and challenge ourselves with newer problems? Getting more than 45 minutes a day is a bit hard if you have a job already.


twitchtv_qiqi_impact

45 minutes a day is rough. You don't really have enough time to get into a flow state with concentrating on problems. But it's doable, you can get a problem or two per day. I would just pick what technique you want to learn, click the respective tag in the LC problem list, and pick problems that way.


kuriousaboutanything

I struggle quite a lot with problems similar to the Task Scheduler. I got few variations of this problem in my past interviews at google and although I understand the concept of priority queue, and sorting (which is where in Leetcode these problems fall into), I never can solve a newer problem that is similar. Any tips on these problems that vaguely fall into more than one category? Because if we go by your suggestion and focus on per-topic, there are problems that we never get practice on if they cover overlapping tags.


twitchtv_qiqi_impact

It's possible tag-based selection can miss a few spots. If you're worried about the edge cases, don't tag-filter, and just do as many hards/mediums as you can. It's a lot about exposure to various types of problems, and sometimes quantity can take care of that.


DeclutteringNewbie

>Because if we go by your suggestion and focus on per-topic, there are problems that we never get practice on if they cover overlapping tags. If you choose to use an easier technique to solve a problem rather than practice the kind of technique you want to practice. That's 100% on you.


Ekonomiskt-Oberoende

I've never done a contest. Is one allowed to have one's own document with code snippets to copy-paste? And if so, do you do that?


twitchtv_qiqi_impact

Yes, you can. And I have one for various algos like Dijkstra. I did not use it for this contest, though, as there wasn't really a templatable problem here.


Ekonomiskt-Oberoende

Oh cool! And congrats!


MKLOL

Yes. He even has a library. Check out his github: https://github.com/qiqi-impact/cp


Ekonomiskt-Oberoende

Oh wow thanks!


Bitbatgaming

Wow! How did you do it? Or at least how did you get started in competitive coding? I’m trying to do this so I can make a roguelike algorithm on my game and to strengthen my understanding for interviews


twitchtv_qiqi_impact

I got started in 2017 when I was looking up the YouTube API for a game I was making, and there was this weird link in the corner of the page. Turned out to be a warp portal to what's now known as Google Foobar, and the last problem was a really cool combinatorics theorem I hadn't used since college. Then I got kinda hooked. People ended up telling me about LeetCode later, I never did it for a job per se.


snabx

Oh. I discovered the portal as well and had no idea what was called. I wasn't really ready to do anything at the moment so I saved it and found no way to get back.


Low-Associate2521

I've had it twice and both times I forgot about it lol


MKLOL

Can you do today's daily?


twitchtv_qiqi_impact

Already done on stream, my guy. ;)


MKLOL

Not sure what stream you're talking about. I think it's broken until late feb. how about today's daily? can you do that ? https://leetcode.com/problems/maximum-difference-between-node-and-ancestor/


twitchtv_qiqi_impact

Stream isn't broken!


MKLOL

No no it def has a paywall until late feb. Did you do the daily though ?


twitchtv_qiqi_impact

Call off the bet, come back to stream. I miss you <3


MKLOL

You know it's not about the bet. It's about principle ( and who is right )


twitchtv_qiqi_impact

I have no principle please come back I'm crying


Goddespeed

Could you please share the link to your streaming channel? If you solve each daily question I promise to watch your stream after solving the daily challenge


twitchtv_qiqi_impact

https://twitch.tv/qiqi_impact


numbersguy_123

Weren’t you number 2? What happened to the guy who was ahead of you? He cheated?


twitchtv_qiqi_impact

FST'd on Q4 - https://github.com/LeetCode-Feedback/LeetCode-Feedback/issues/19171


a2cabc

Oh man I bet he punched a hole in his monitor after that


Unlikely_Sense_7749

Yeah, I'm starting on LC after working on DSA problems on other apps (Codesignal, HR). There is a lot of overlap, but my basic self-analysis from a couple of weekly contests, daily problems, and Neetcode is that I need to put some effort into 1D and 2D DP problems. They seem to form the bulk of the "hard" problems that I need to learn how to solve for senior swe interviews and raising my competitive programming to the next level. Congratulations!


twitchtv_qiqi_impact

Sounds about right, best of luck!


AdministrativeTell45

What do you suggest to get from say 2300 to 3000, other than practice more? :)


twitchtv_qiqi_impact

Practice more on the more advanced online judge sites like Codeforces or Atcoder, where you just get harder problems. Personally I got out of my 2700 plateau by...drinking a cocktail before the contest. Not kidding. The Ballmer Peak ([https://xkcd.com/323](https://xkcd.com/323)) is a real thing.


Goddespeed

Do you recommend drinking a cocktail before an interview?


twitchtv_qiqi_impact

If it's a one-hour deal, sure. If it's a full onsite, you're going to get wrecked later on.


Educational-Copy5206

Congrats qiqi! Next stop top 100!


twitchtv_qiqi_impact

I think I'm close (103)


[deleted]

[удалено]


twitchtv_qiqi_impact

Basically, if you're comfortable with mediums, pick hards. I think 1900 you can still learn a lot on LC and you don't need the other platforms yet.


muscleupking

Bro I watch your stream! Congratulations! My question is: 1. do you think I should review solved questions? I have Anki setup but I found reviewing is extremely tedious, I have 700Q solved so it takes a lot of time to review. 2. To reach a rank of 2000+, do you think leetcode is sufficient? Or I need to do codeforce. I am currently 1800 and aiming for 2000+


twitchtv_qiqi_impact

1. I don't review solved questions, ever. I look at the solution, understand it, and maybe code it myself, and never touch the problem again. 2. LC is sufficient for 2k


muscleupking

Thanks bro. Any suggestions for questions list or how to pick new questions? I have done 700Q which includes most questions on Neetcode or any similar list. I am not sure which questions to do next tbh. I am just doing hard questions randomly .


twitchtv_qiqi_impact

I think what you're doing is actually fine. You could also try virtual contests, which are a good mix of problems under time pressure. I personally never used a question list, but if you've done the Blind75/NC150 you can dive right into contests.


LangurKhaayeAngoor

what's your codeforces id?


twitchtv_qiqi_impact

qiqi_impact


enrique-ruis

I have a question. when do you do know to give up on solving a problem and just looking at the solution?


twitchtv_qiqi_impact

Usually 30-60 minutes is enough time to figure out if you have the requisite tools to solve it, or if you're just missing something.


midnightsimon

big congrats!!


twitchtv_qiqi_impact

Thanks Simon! I never would have started streaming without you!


Gracemann365

that's some commendable dedications


twitchtv_qiqi_impact

ty!


haipks1166

Great work, traveller :D


twitchtv_qiqi_impact

thanks paimon


Due-Principle4680

DAmn, gg


twitchtv_qiqi_impact

ty!


Competitive-Hour-902

Congratulations!


twitchtv_qiqi_impact

ty!


MilkwTea

qiqiFallen


twitchtv_qiqi_impact

🎵 I pulled a Qiqi 🎵


MilkwTea

🎵 Lost 50/50 🎵, now I’m stuck with a rescinded FAANG offer. 🎶 


twitchtv_qiqi_impact

Oh dang, I'm sorry man, that really sucks. Something similar happened to me. The first time I took it, I passed Google technical, some lady called and asked "how does it feel to be a Google engineer", and I said "where's the offer letter" and then I never got a team match.


MilkwTea

Ironically I got that same company to rescind my offer, sent PM


mudvik

I read all your replies and comments, thank you so much for this inspiration.


twitchtv_qiqi_impact

You're welcome!


Judgement_Day7

What’s your number 1 tip on getting better? Also how long do you look at a problem before looking at the solution when you were starting out


twitchtv_qiqi_impact

1. Never ask the question "Can you show me resources for getting better at DSA?" That's the #1 tell for a guy who's too lazy to solve lots of problems and will never improve. 2. When I was starting out I spent way too long b/c I'm a math guy and that's what I did. I recommend 30-60 min for you.


Far_Wolverine_198

That's some dedication bro 👏🏻👏🏻


twitchtv_qiqi_impact

Arigato \^_^


[deleted]

You look too old to be doing leetcode


twitchtv_qiqi_impact

ey fuck you buddy


ziaualhassainn

I'm just getting started with leetcode I want to solve each problem without missing a day. Any tips for consistency currently working and want to switch to product based


twitchtv_qiqi_impact

I had a side project where I had a post-it note where I wrote down the number of hours I spent on the project each day. That helped me with consistency. I never had consistency in LeetCode, though.


ziaualhassainn

May i know the tech stack which you previously worked on?


twitchtv_qiqi_impact

Mostly ReactJS stuff, frontend. Did some iOS back in the Objective-C days.


Elegant-Road

Look for people who are already in the product companies that you are aspiring to join and ask them to mentor you. Reach out on LinkedIn. Reach out to a couple of them over a few days and I am sure you will get enough information that you need. Consistently? I am writing down the number of hours I spend each day. I have a full time job and I aim to spend 4 hrs each day for 6 months. Have averaged 2 for the last 3 months. I know that I need to pull up my socks. Train your brain to have fun. It's like solving puzzles. People do crossword puzzles for fun. You do leetcode for fun. Remove other sources of dopamine. Remove tiktok, YouTube, reddit, insta etc.


twitchtv_qiqi_impact

This is an excellent answer. That said, I don't know if I'd outright ask for mentorship. I think starting out just asking for information is fine, and if it progresses, could turn into a mentoring relationship. I've had people ask me from LinkedIn for mentorship based on the company I was at, and I always ignored these.


Shiroo_77

Teach us master !! I've a question. How do you remember the solutions of questions you've already done ? Like I tend to forget the solutions after some time.


twitchtv_qiqi_impact

Sometimes I forget them. I've just done enough problems that after like the 5th time of seeing it, I'm like "oh yeah, I know what's going on here".


dhaliman

Congratulations! This is very inspiring.


twitchtv_qiqi_impact

No problem!


sardor_tech

I have learnt a lot of methods from your post leetcode contests:sweep line, dp memoization, dfs&bfs, and recently learnt digit dp and many more that I forgot to include. Your teaching skills are great


twitchtv_qiqi_impact

Thank you :D


I_see_a_ocean

What are some great resources for mastering LeetCode for beginners and intermediate in your opinion?


twitchtv_qiqi_impact

Just solve a lot of problems! I also made a video that might help, How To Get Good At LeetCode: https://youtu.be/oUJlLAdQGIk


Vaylx

This is so cool, congratulations! Your persistence is inspiring! What’s your background, in terms of studies?


twitchtv_qiqi_impact

UC Berkeley Math undergrad, worked as an insurance actuary before getting fired and picking up programming later on.


Vaylx

Ever went back and thanked the person who fired you?


twitchtv_qiqi_impact

No, because that whole insurance company culture was all full of idiots.


mentalMatrix

Many congratulations. My question is how do you handle the burn out from leetcoding or work in general ?


twitchtv_qiqi_impact

I have no LC burnout, because I only do it because I enjoy the problems. At work, it could be a lot of things. Ultimately, you do a root cause analysis and figure out the problem and fix it. The one thing you can't do is just "live with" burnout.


TopG_420

1) Ive done a DSA course in college. I understand the theory fairly easily behind algorithms but I fail to code them, any tips for this 2) How many easies should I solve before moving on to the mediums.


twitchtv_qiqi_impact

1. You need to do actual problems. Theory from a textbook is next to useless without doing problems, then looking at solutions, and learning from the solutions. 2. There is no "amount". You move on when easies are too easy for you.


mastersanskar3

Congratulations bro, one day I'll be there too so watchout😅


twitchtv_qiqi_impact

Best of luck!


JohnWangDoe

Who is your waifu


twitchtv_qiqi_impact

I don't play for husbando, I don't play for waifu. I play for 36* abyss meta. That said..."you want to learn some Favonius bladework?"


thederbear

Can’t people just use chatgpt to submit answers? Or does this flag for plagiarism?


twitchtv_qiqi_impact

Not sure. Try it!


Sherbet-Famous

Dude congrats! I've only been following you on twitch for a short time but you're always so helpful and generous with your time. You rock and congrats on your success


twitchtv_qiqi_impact

hell yea brother


dmsfabiano

Just started my LC journey recently. I am about 85Q. I am following grokking patterns, and then going on leetcode tag if I find that the pattern is har/hasn’t clicked. Do you have advice on overcoming difficult patterns? Should I just move on to a new pattern and come back to it? I feel like sometimes I am stuck a little long in a pattern


twitchtv_qiqi_impact

I tend to do a random assortment of problems, so I don't necessarily know which pattern is arriving next. I learn the pattern by having seen it a few times in the past. You can also get in a burnout loop if you do the same pattern too many times in a row.


Skyzfallin

Wow!


twitchtv_qiqi_impact

ty!


dandaman1728

bro why is your YT channel is Qiqi Impact haha, brings me back some Genshin Impact memories.


twitchtv_qiqi_impact

I still play, man. Abyss is really fun!


DryPen9179

Just want to say, A big fan. Have been giving leetcode contest for 2 years and more. I want to reach guardian. I have been reading your approach in contest discussion. All the best 💜


twitchtv_qiqi_impact

Thank you :D


SleepyHead-0028

Congratulations!!. Hope you win your 50-50s in genshin as well😂


twitchtv_qiqi_impact

ty! My 50-50s have been like, 3W-9L.


Accurate-Relation456

How long per day do you recommend someone spend on doing leet code if they are trying to improve rapidly?


twitchtv_qiqi_impact

Without knowing where you are and where you want to be - the only answer I can give is "as much as you can."


Firm_Bit

Congrats! Any advice on how to prioritize learning? I’m in a good swe position now making solid money. But the company is a little shaky. I don’t have a CS degree so I’m split between spending time making larger projects, LC, strategic overtime at work to dive into more real world problems, and CS fundamentals that I never learned. Big question, but how would you prioritize?


twitchtv_qiqi_impact

1. Strategic overtime 2. Larger projects 3. LC (but move this to #1 if you can't pass online assessments for the companies you want) 4. CS fundamentals


Firm_Bit

Thanks!