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

SheepAndPig at 10:08 AM
Share

No comments:

Post a Comment

‹
›
Home
View web version
Powered by Blogger.