Skip to content

ak-py/leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • Extract keywords (Input constrains, Data types, Scale of input)
  • Classify the Problem
    • What are the algorithms commonly used on this kind of problems?
  • Paraphrase the question
  • Understand test cases / Ask for more test cases
    • Function Signature
  • Clarifications / Edge Cases
  • Trade Off Analysis
    • Brute Force Solution

      • Outline your approach

      • Space & Time Complexity *& ***(call stack) - specify variables

        (In what situations is the solution good? In what situations is the solution bad?)

      • Analyze Inefficiency

        Bottlenecks, Unnecessary Word, Duplication Work

    • Optimal Solution

      • Outline your approach
      • Space & Time Complexity *& ***(call stack) - specify variables
      • Compare it with Brute Force
      • Ask interviewer: "Does this sound like a good approach?"
  • Implementation, keep comparing optimal solution and brute force solution, explain why this solution is better to show your understanding
  • Verification
    • Scan through
    • Run test cases - small/medium sized, one more likely to detect errors

About

practice with popular leetcode problems

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages