LIKE CODING

Sunday, June 16, 2019

LeetCode_Summary [Two Pointers]

LeetCode [283] Move Zeroes

LeetCode [26] Remove Duplicates from Sorted Array



LeetCode [524] Longest Word in Dictionary through Deleting



LeetCode [3] Longest Substring Without Repeating Characters

LeetCode [30] Substring with Concatenation of All Words

LeetCode [76] Minimum Window Substring

LeetCode [159] Longest Substring with At Most Two Distinct Characters

LeetCode [567] Permutation in String

LeetCode [904] Fruit Into Baskets


  1. maintain "start_index" and "end_index"
  2. the two indices go towards each other

LeetCode [11] Container With Most Water

LeetCode [15] 3Sum

LeetCode [125] Valid Palindrome

LeetCode [344] Reverse String

LeetCode [977] Squares of a Sorted Array


  1. maintain two indices on two vectors
  2. both indices go backwards from the end

LeetCode [88] Merge Sorted Array

LeetCode [844] Backspace String Compare


  1. fast and slow indices
  2. both go towards the same direction

LeetCode [141] Linked List Cycle

LeetCode [457] Circular Array Loop


  1. Others

LeetCode [234] Palindrome Linked List

LeetCode [632] Smallest Range

Posted by SheepAndPig at 10:08 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
View mobile version
Subscribe to: Post Comments (Atom)

Search This Blog

Recent Updated Posts

Recent Posts Widget

Blog Archive

  • ►  2021 (39)
    • ►  May (3)
    • ►  April (14)
    • ►  March (16)
    • ►  January (6)
  • ►  2020 (295)
    • ►  December (3)
    • ►  November (24)
    • ►  October (82)
    • ►  September (106)
    • ►  August (80)
  • ▼  2019 (93)
    • ►  September (13)
    • ►  August (4)
    • ►  July (8)
    • ▼  June (28)
      • LeetCode [904] Fruit Into Baskets
      • LeetCode [844] Backspace String Compare
      • LeetCode [524] Longest Word in Dictionary through ...
      • LeetCode [457] Circular Array Loop
      • LeetCode_Summary [Two Pointers]
      • LeetCode [977] Squares of a Sorted Array
      • LeetCode [935] Knight Dialer
      • LeetCode [463] Island Perimeter
      • LeetCode [415] Add Strings
      • LeetCode [825] Friends Of Appropriate Ages
      • LeetCode [824] Goat Latin
      • LeetCode [885] Spiral Matrix III
      • LeetCode [622] Design Circular Queue
      • LeetCode [446] Arithmetic Slices II - Subsequence
      • LeetCode [413] Arithmetic Slices
      • LeetCode [635] Design Log Storage System
      • LeetCode [408] Valid Word Abbreviation
      • LeetCode [416] Partition Equal Subset Sum
      • LeetCode [477] Total Hamming Distance
      • LeetCode [461] Hamming Distance
      • LeetCode [805] Split Array With Same Average
      • LeetCode [451] Sort Characters By Frequency
      • LeetCode [658] Find K Closest Elements
      • LeetCode [895] Maximum Frequency Stack
      • LeetCode [716] Max Stack
      • LeetCode [735] Asteroid Collision
      • LeetCode [529] Minesweeper
      • LeetCode [815] Bus Routes
    • ►  May (36)
    • ►  April (4)
  • ►  2018 (1)
    • ►  August (1)
  • ►  2017 (1)
    • ►  December (1)
  • ►  2016 (44)
    • ►  August (9)
    • ►  July (16)
    • ►  March (4)
    • ►  February (8)
    • ►  January (7)
  • ►  2015 (343)
    • ►  December (14)
    • ►  November (12)
    • ►  October (17)
    • ►  September (17)
    • ►  August (60)
    • ►  July (31)
    • ►  May (8)
    • ►  April (49)
    • ►  March (9)
    • ►  February (126)
Simple theme. Powered by Blogger.