The Algorithm Design Manual or Leetcode, which one first ?

Nov 11 18 Comments

Assume lacking data structures and algorithms fundamentals, or some gaps in knowledge. I've done many LC and feel stuck when I face an unseen question and can't think properly. I've read very good reviews of The Algorithm Design Manual, so which I should focus on first: The Algorithm Design Manual book or Leetcode ?

85 VOTES SELECT ONLY ONE ANSWER
VOTE VIEW RESULT

comments

Want to comment? LOG IN or SIGN UP
TOP 18 Comments
  • Google / IT Nooglerish
    Try algorithm and ds courses on Coursera. They are good to bridge Gap in understanding.
    Nov 11 6
    • Northrop Grumman dWWk15
      I’ve never found those courses useful. Everyone already knows the fundamentals - they just don’t know how to come up with solutions that were discovered by a PhD 50 years ago in 15 minutes. For that you gotta grind leetcode.
      Nov 11
    • Salesforce Morgoth
      You might be surprised how many people actually don't know the fundamentals.
      Nov 11
    • OP
      exactly @dWWk15. I know my fundamentals but struggle to come up with decent solutions to LC questions I haven't seen before, so I suspected gaps in knowledge
      Nov 11
    • Northrop Grumman dWWk15
      Most likely just need to improve your problem solving skills. I started reading “how to solve it”, and it’s been helping.

      But yeah can’t ignore practice.
      Nov 11
    • Google / IT Nooglerish
      There at at least two datastructure courses by University of California San Diego higher school of economics there. data structures and advanced datastructures in Java.. both are good for start. Stanford has a very detailed (and hard to finish assignments) specialization on algorithms. The first few courses are good.
      The book is good too. There's no one single exhaustive way to learn. Mix and match.. give both a try.
      Good thing about Coursera is that they make you write code as assignment which helps cement things and you are forced to write code for basic infrastructure level data structures and algos that you would typically just import from some library.
      Nov 11
  • Roku de Vil
    Both at the same time
    Nov 11 0
  • Roku cruella
    Haven't read ADM. But if u r lacking some DS/algo fundamentals pick up a good algo book or course first.

    Just doing LC without fundamentals is like pouring buckets of water on a large fire.
    Nov 11 5
    • OP
      I actually know ALL the theory necessary for LC, but keep struggling with unseen questions although I understand the solutions to the questions I did, so I though my fundamentals are not strong enough.
      Nov 11
    • Roku cruella
      If u know them all, I guess what u need practice with is identifying which category a problem falls into when u see them. That's the hardest part. Once u start doing that. Solving them is easier.
      Nov 11
    • OP
      Valid point. What can I do to develop that skill of identifying categories ?
      Nov 11
    • Roku cruella
      Oh. I am gonna give a non-helpful answer :( cuz I really don't know. It sort of is intuition. Probably comes with practice. Sorry don't have a better answer. But I'll think about it.
      Nov 11
    • New arv1
      I think one thing that could help you to identify patterns is to solve a bunch of questions from easy to hard in one category until you're able to see the pattern and then moving on to the next category. I myself improved on my pattern recognition after solving a sufficient number of problems in my weak areas and taking notes.
      Nov 11
  • New / Eng
    AmazonEng

    New Eng

    PRE
    Facebook, Amazon
    BIO
    Facebook, Amazon Software Engineering.
    AmazonEngmore
    Yeetcode.
    Nov 11 0
  • Facebook leetworld
    Leetcode 100%.
    Nov 11 0
  • Blue Origin / Eng vbbf25
    I did the algorithm design manual before leetcoding. It has a great overview of the fundamentals. However many of the algorithms provided are suboptimal; which can be a bit frustrating, or a good opening for you to critique, depending on your perspective. I’d say it depends on which of two you are looking to acquire, fundamentals, or specific techniques. Leetcode being a better place to quickly develop the latter, if you already posses the former.
    Nov 11 0
  • AT&T jose1
    It’s pure luck. Both are important.
    Nov 11 0

Salary
Comparison

    Real time salary information from verified employees