Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A curated list of 160+ leetcode questions grouped by their common patterns

License

NotificationsYou must be signed in to change notification settings

techhubgit/leetcode-patterns

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

Background

This repo is intended for any individual wanting to improve their problemsolving skills for software engineering interviews.

Problems are grouped under their respective subtopic, in order to focus onrepeatedly applying common patterns rather than randomly tackling questions.

All questions are available onleetcode.com with some requiringleetcode premium.

Preface

It is highly recommended to read chapters 1, 2, 3, 4, 8, and 10 ofCracking The Coding Interviewto familiarize yourself with the following data structures and their operations:

  • Arrays
  • Maps
  • Linked Lists
  • Queues
  • Heaps
  • Stacks
  • Trees
  • Graphs

In addition, you should have a good grasp on common algorithms such as:

  • Breadth-first search
  • Depth-first search
  • Binary search
  • Recursion

Notes

This pdf contains useful information for the built-in data structures in Java.

Other useful methods to know includesubstring(),toCharArray(),Math.max(),Math.min(), andArrays.fill().

Question List

The entire question list can be found here:https://seanprashad.com/leetcode-patterns/.

In addition to viewing the question list, companies that have previously askedthe question in the past 6 months (as of January 2020) will be listed. You canalso use the checkboxes to mark which questions you've completed!

Solutions

Solutions written in Java can be found in thesolutions branch.

Leetcode Discuss

Leetcode discuss is an amazing resource and features previous interviewquestions, as well as compensation and general career advice.

Tips to Consider

If input array is sorted then    - Binary search    - Two pointersIf asked for all permutations/subsets then    - BacktrackingIf given a tree then    - DFS    - BFSIf given a graph then    - DFS    - BFSIf given a linked list then    - Two pointersIf recursion is banned then    - StackIf asked for maximum/minumum subarray/subset/options then    - Dynamic programmingIf asked for top/least K items then    - HeapIf asked for common strings then    - Map    - TrieElse    - Map/Set for O(1) time & O(n) space    - Sort input for O(nlogn) time and O(1) space

Suggestions

Think a question should/shouldn't be included? Wish there was another feature?Feel free to open anissue with your suggestion!

Acknowledgements

This list is heavily inspired fromGrokking the Coding Interview withadditional problems extracted from theBlind 75 list and this medium articleon14 patterns to ace any coding interview question.

About

A curated list of 160+ leetcode questions grouped by their common patterns

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript96.7%
  • SCSS2.4%
  • HTML0.9%

[8]ページ先頭

©2009-2025 Movatter.jp