Leetcode secret

Deutsche Bank targetGGl
Oct 24 32 Comments

Can someone who went from being average at solving LC, to being able to flash them in five or ten minutes (or under 20) answer this - was there any specific thing that helped you. Should I be taking notes when I solve a problem or just keep moving

tldr: share secrets to crack any algorithmic interview and collect good karma points.


TC 123k

comments

Want to comment? LOG IN or SIGN UP
TOP 32 Comments
  • Cisco Lspqj4lw
    I took 2 pages per problem. 1 page for notes and 1 for the actual code. It took me 3.5 months to crack Google.
    Oct 24 8
    • Cisco Lspqj4lw
      In addition, I probably did around 30-40 mock interviews in parallel
      Oct 24
    • Athenahealth xwslety
      Where did you do the mock ?
      Oct 24
    • Cisco Lspqj4lw
      I did them at my old job lol, with another person who was trying to jump too.
      Oct 24
    • Athenahealth xwslety
      Nice!
      Oct 24
    • Dell LUHV04
      These mock interviews were all coding ?
      Oct 24
  • Drawing on a mini whiteboard helped me. Visualizing tree traversal/recursion tree etc.
    Oct 24 2
    • Deutsche Bank targetGGl
      OP
      Yes I do this - any advice for handling DP and backtracking ?
      Oct 24
    • DP: draw a table, remember the base case is sometimes “off-by-one-column/row”, e.g. DP for edit distance starts with empty strings, not string of index 0 (where length is one). You can sometimes derive the algorithm by filling in the bottom right corner first: find an easy example, come up with an answer by eyes, then fill the grid way back to the base case. Use another piece of paper to cover up a row/column to visualize what the “previous answer” mean.

      For backtracking, look up “backtracking blueprint” by Back to Back SWE on YouTube
      Oct 26
  • Google foony
    Do some introspection after you solve a bunch and pay attention to the areas that trip you up and leave you taking too long to debug the problem. For me, for instance, it was off by one errors. I started putting a bit more upfront effort into making sure they were correct, and I started nailing them.
    Oct 24 2
    • Google foony
      Keep practicing and do lots of interviews! Practice on real companies before the companies you really care about.
      Oct 24
    • Apple bogle
      >Since then I have cleared one of the FANG onsite

      you passed the FANG onsite or you got the FANG onsite? Either way that is pretty good with only 75 LC done
      Oct 24
  • Microsoft Wackrosoft
    $35/mo subscription and going through the explore tab accelerated my learning
    Oct 24 1
    • Deutsche Bank targetGGl
      OP
      Thank you - did you already clear the onsites or have those lined up ?
      Oct 24
  • New grindr
    How many have you done? Come back to us at 100+ and you'll probably be fine.
    Oct 24 6
    • the fuck? DP is the easiest topic of all. You obviously havent faced any of those bullshit array and string questions
      Oct 24
    • Deutsche Bank targetGGl
      OP
      @koala - I did encounter the bullshit array and string questions - I nimbly stepped aside and moved on to another.

      Also, I love the koala bear in your DP. If you would allow me to digress a bit - is there a special significance behind that? Are you originally from Australia?
      Oct 24
    • Nah. Btw DP is all about finding the recurrence
      Oct 24
    • New grindr
      Easiest are all those binary tree and linked list questions. Try doing the tree questions without recursion, impress the judges.
      Oct 24
    • Facebook whaF44
      I agree with Cisco, DP is one of the easier topics. It's also not too different from graph/tree problems; DP can be thought of as finding a topological ordering on the graph of all subproblems with the base cases as the initial layer, and then solving the subproblems in said topological ordering.
      Oct 25
  • Microsoft micrusade1
    I always apply bruteforce and reach nowhere lol.
    Oct 24 0
  • Uber whiptest
    just doing a lot of them
    Oct 24 0
  • New / Eng
    500k

    New Eng

    BIO
    https://ShiftLeft.academy
    500kmore
    Oct 24 2
    • Dell LUHV04
      You have used this service ?
      If yes , any reviews ?
      Oct 24
    • New / Eng
      500k

      New Eng

      BIO
      https://ShiftLeft.academy
      500kmore
      No, I coach there. You can schedule a free coaching call from the website.
      Oct 24
  • Amazon / Eng prestige🧐
    Brute force 🤷‍♂️
    Oct 24 0
  • Two Sigma QOwS48
    Get the yearly subscription, do it everyday for a year and you’ll be pro. Look at discussion to improve upon your answer. It’s consistency that matters💪
    Nov 6 0
  • Bloomberg 🌴🌴🌴50
    Deutsche Bank location? 123 seems low even fresh out of college.
    Oct 24 0

Salary
Comparison

    Real time salary information from verified employees