Leetcode
  • Leetcode Questions
  • Runtime Screenshots
  • DataStructure
    • Leetcode 394. Decode String
    • Leetcode 225. Implement Stack Using Queues
    • Leetcode 336. Palindrome Pairs
    • Leetcode 316. Remove Duplicate Letters
    • Leetcode 206. Reverse Linked List
    • Leetcode 347. Top K Frequent Elements
    • Leetcode 227. Basic Calculator II
    • Leetcode 224. Basic Calculator
  • Linear
    • Leetcode 23. Merge k Sorted Lists
    • Leetcode 48. Rotate Image
    • Leetcode 6. ZigZag Conversion
    • Leetcode 438. Find All Anagrams in a String
    • Leetcode 189. Rotate Array
    • LeetCode 56. Merge Intervals
    • Leetcode 4. Median of Two Sorted Array
    • Leetcode 3. Longest Substring Without Repeating Characters
    • Leetcode 8. String to Integer (atoi)
    • Leetcode 5. Longest Palindromic Substring
    • Leetcode 11. Container With Most Water
  • Tree
    • Leetcode 103. Binary Tree Zigzag Level Order Traversal
    • Leetcode 508. Most Frequent Subtree Sum
    • Leetcode 226. Invert Binary Tree
    • Leetcode 222. Count Complete Tree Nodes
    • Leetcode 250. Count Univalue Subtrees
    • Leetcode 285. Inorder Successor in BST
    • Leetcode 230. Kth Smallest Element in a BST
    • Leetcode 543. Diameter of Binary Tree
    • Leetcode 199. Binary Tree Right Side View
  • Math
    • Leetcode 50. Power(x, n)
    • Leetcode 166. Fraction to Recurring Decimal
    • Leetcode 7. Reverse Integer
    • Leetcode 360. Sort Transformed Array
    • Leetcode 367. Valid Perfect Square
    • Leetcode 12. Integer to Roman
  • DynamicProgramming
    • Leetcode 10. Regular Expression Matching
    • Leetcode 253. Meeting Rooms II
    • Leetcode 303. Range Sum Query
    • Leetcode 22. Generate Parentheses
  • Graph
    • Leetcode 142. Linked List Cycle II
    • Leetcode 261. Graph Valid Tree
    • Leetcode 339. Nested List Weight Sum
    • Leetcode 207. Course Schedule
  • OODesign
    • Leetcode 295. Find Media From Data Stream
Powered by GitBook
On this page
  • Introduction
  • Table of Content
  • Helpful Links

Was this helpful?

Leetcode Questions

NextRuntime Screenshots

Last updated 5 years ago

Was this helpful?

Introduction

This repository contains my on-going summary of classical Leetcode questions.

It aims to help me prepare for coding interview, but more importantly, it serves as the playground where I improve my software engineering's fundamental skills.

I believe Leetcode is not simply about coding a solution, but about problem solving, mathematical analysis and coding habits tuning.

This repository is online at , powered by gitbook.

Table of Content

All questions are organized into different categories as following. Questions with an (en) tag means they are summerized in English.

  • Data Structures

    • (206) Reverse Linked List

    • (224) Basic Calculator

    • (225) Implement Stack Using Queues

    • (227) Basic Calculator II

    • (316) Remove Duplicate Letters

    • (336) Palindrome Pairs

    • (347) Top K Frequent Elements

    • (394) Decode String

  • Linear Structure

    • (3) Longest Substring Without Repeating Characters

    • (4) Median of Two Sorted Array

    • (5) Longest Palindromic Substring

    • (6)

    • (8)

    • (11) Container With Most Water

    • (23) Merge K Sorted Lists

    • (48) Rotate Image

    • (56) Merge Intervals

    • (189) Rotate Array

    • (438) Find All Anagrams In a String

  • Tree

    • (103) Binary Tree Zigzg Level Order Traversal

    • (199) Binary Tree Right Side View

    • (222) Count Complete Tree Nodes

    • (226) Invert Binary Tree

    • (230) Kth Smallest Elements BST

    • (250) Count Univalue Subtrees

    • (285) Inorder Successor in BST

    • (508) Most Frequent Subtree Sum

    • (543) Diameter of Binary Tree

  • Graph

    • (142) Linked List Cycle II

    • (207) course Schedule

    • (261) Graph Valid Tree

    • (339) Nested List Weight Sum

  • Dynamic Programming

    • (22) Generate Parentheses

    • (253) Meeting Room II

    • (303) Range Sum Query

  • Mathematics

    • (7)

    • (50) Pow(x, n)

    • (166) Fraction to Recurring Decimals

    • (360) Sort Transformed Array

    • (367) Valid Perfect Square

  • Object-Oriented Design

    • (295) Find Median From Data Stream

Runtime folder contains some interesting runtime screenshots.

Helpful Links

This section includes very, very helpful resources about Leetcodes, computer science and more. Read below for the proven strategies that help you get the best out of Leetcode practices.

https://leetcode.li-mao.net
Zig Zag Conversion (en)
String to Integer (en)
Reverse Integer (en)
General Tips on Using Leetcode to Prepare for Interview
Detailed Leetcode Grinding Strategy
Complete Guide towards Software Engineering Interview
Comprehensive Chinese Leetcode Solution Resources
UCSD-CSE-ReviewDocs