Git Product home page Git Product logo

leetcode's Introduction

Algorithm Problems

Array/Vector/Queue/Map/Set

One Dimension Array/Vector

18 4Sum / Medium

57 Insert Interval / Hard

31. Next Permutation

352 Data Stream as Disjoint Intervals / Hard

128 Longest Consecutive Sequence / Hard

81 Search in Rotated Sorted Array II / Medium

324 Wiggle Sort II / Medium

164 Maximum Gap / Hard

334 Increasing Triplet Subsequence / Medium

42 Trapping Rain Water / Hard

84 Largest Rectangle in Histogram / Hard

85 Maximal Rectangle / Hard

287 Find the Duplicate Number / Medium

239 Sliding Window Maximum / Hard

295 Find Median from Data Stream / Hard

Two Dimension Array/Vector

48 Rotate Image / Medium

85 Maximal Rectangle / Hard

37 Sudoku Solver / Hard

63 Unique Paths II / Medium (dynamic programming)

Queue/Stack/Map/Set

219. Contains Duplicate II

381Insert Delete GetRandom O(1) - Duplicates allowed / Hard

215 Kth Largest Element in an Array Medium

347 Top K Frequent Elements / Medium

41 First Missing Positive / Hard

37 Sudoku Solver / Hard

Binary Tree

105 Construct Binary Tree from Preorder and Inorder Traversal / Medium

106 Construct Binary Tree from Inorder and Postorder Traversal / Medium

Linked List

Database Problems

MySQL

SELECT, WHERE

595 Big Countries / Easy SELECT, WHERE

620 Not Boring Movies / Easy ORDER

178 Rank Scores / Medium COUNT, DISTINCT, SELECT

JOIN

175 Combine Two Tables / Easy LEFT JOIN

181 Employees Earning More Than Their Managers / Easy JOIN, SELECT

183 Customers Who Never Order / Easy JOIN, SELECT

197 Rising Temperature / Easy DATEDIFF

601 Human Traffic of Stadium / Hard DISTINCT, SELECT, 3 TABLES JOIN

180 Consecutive Numbers / Medium DISTINCT, SELECT, 3 TABLES JOIN

184 Department Highest Salary / Medium WHERE, IN, MAX, GROUP BY

185 Department Top Three Salaries / Hard COUNT, JOIN

262 Trips and Users SUM, COUNT, CASE, GROUP BY

LIMIT, OFFSET

176 Second Highest Salary / EasyLIMIT, OFFSET, IFNULL

177 Nth Highest Salary / Medium CREATE FUNCTION, DECLARE, SET, LIMIT, OFFSET

GROUP BY, HAVING

182 Duplicate Emails / Easy GROUP BY, HAVING, COUNT

596 Classes More Than 5 Students / Easy DISTINCT, GROUP BY, HAVING, COUNT

184 Department Highest Salary / Medium WHERE, IN, MAX, GROUP BY

262 Trips and Users SUM, COUNT, CASE, GROUP BY

DELETE

196 Delete Duplicate Emails / Easy DELETE

UPDATE

627 Swap Salary / Easy UPDATE, SET, IF

ALGORITHM

627 Swap Salary / Easy UPDATE, SET, IF

626 Exchange Seats / Medium CASE, COUNT

178 Rank Scores / Medium COUNT, DISTINCT, SELECT

185 Department Top Three Salaries / Hard COUNT, JOIN

262 Trips and Users SUM, COUNT, CASE, GROUP BY

FUNCTION

177 Nth Highest Salary / Medium CREATE FUNCTION, DECLARE, SET, LIMIT, OFFSET

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.