Skip to content

Mona566/leetcode_practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic algorithm

  1. Arrary (day1-day5):

二分搜索法:

Example 1: https://leetcode.com/problems/search-insert-position/ Search Insert Position

Example 2: https://leetcode.com/problems/binary-search/description/ Binary Search

Static Arrays

Example 3: https://leetcode.com/problems/remove-duplicates-from-sorted-array/description/ Remove Duplicates from Sorted Array

Example 4. Remove Element https://leetcode.com/problems/remove-element/description/

Dynamic Arrays

Example 5. Concatenation of Array https://leetcode.com/problems/concatenation-of-array/

Stacks

Example 6: https://neetcode.io/problems/validate-parentheses?list=neetcode150 Valid Parentheses

Example 7: https://leetcode.com/problems/squares-of-a-sorted-array/description/ Squares of a Sorted Array

Example 8: https://neetcode.io/problems/minimum-stack Minimum Stack

sliding window

Example 9: https://leetcode.com/problems/minimum-size-subarray-sum/description/ Minimum Size Subarray Sum

Arrary practice problems

Example 10: https://neetcode.io/problems/spiral-matrix Spiral Matrix

Example 11: https://leetcode.com/problems/spiral-matrix-ii/description/ piral Matrix II

(day6 - day10):

linked lists:

Singly Linked Lists

Example 12: Reverse Linked List https://neetcode.io/problems/reverse-a-linked-list

Example 13: Merge Two Sorted Linked Lists https://neetcode.io/problems/merge-two-sorted-linked-lists

Example 14: Remove Linked List Elements https://leetcode.com/problems/remove-linked-list-elements/description/

Example 15: Design Linked List https://leetcode.com/problems/design-linked-list/description/

Double linked list

Example 16: Design Browser History https://leetcode.com/problems/design-browser-history/

Example 17: Swap Nodes in Pairs https://leetcode.com/problems/swap-nodes-in-pairs/description/

Example 18: Remove Nth Node From End of List https://leetcode.com/problems/remove-nth-node-from-end-of-list/description/

Example 19: Linked list: https://leetcode.com/problems/intersection-of-two-linked-lists/description/ Intersection of Two Linked Lists

Example 20: Linked List Cycle II https://leetcode.com/problems/linked-list-cycle-ii/description/?source=submission-ac

Hash Table

Example 21: Valid Anagram https://leetcode.com/problems/valid-anagram/description/

Example 22: Intersection of Two Arrays https://leetcode.com/problems/intersection-of-two-arrays/description/

Example 23: Happy Number https://leetcode.com/problems/happy-number/description/

Example 24: Sum of Two Integers https://leetcode.com/problems/sum-of-two-integers/description/

(day 11 - day 15)

Example 25: 4Sum II https://leetcode.com/problems/4sum-ii/description/

Example 26: Ransom Note https://leetcode.com/problems/ransom-note/description/

Example 27: 3Sum https://leetcode.com/problems/3sum/description/

Example 28: 4Sum https://leetcode.com/problems/4sum/description/

string

Example 29: Reverse String https://leetcode.com/problems/reverse-string/description/

Example 30: Reverse String II https://leetcode.com/problems/reverse-string-ii/description/

Example 31: Reverse Words in a String https://leetcode.com/problems/reverse-words-in-a-string/description/

(day 16 - day 20)

Example 32: Find the Index of the First Occurrence in a String https://leetcode.com/problems/find-the-index-of-the-first-occurrence-in-a-string/

Example 33: Repeated Substring Pattern https://leetcode.com/problems/repeated-substring-pattern/description/

Stack and queue

Example 34: Implement Queue using Stacks https://leetcode.com/problems/implement-queue-using-stacks/description/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published