原创 leetcode Spiral Matrix

原題鏈接:https://leetcode.com/problems/spiral-matrix/ Description Given a matrix of m x n elements (m rows, n columns),

原创 leetcode Valid Palindrome

原題鏈接:https://leetcode.com/problems/valid-palindrome/ Description Given a string, determine if it is a palindrome, c

原创 leetcode Add Binary

原題鏈接:https://leetcode.com/problems/add-binary/ Description Given two binary strings, return their sum (also a binar

原创 leetcode Triangle

原題鏈接:https://leetcode.com/problems/triangle/ Description Given a triangle, find the minimum path sum from top to bo

原创 leetcode Search a 2D Matrix

原題鏈接:https://leetcode.com/problems/search-a-2d-matrix/ Description Write an efficient algorithm that searches for a

原创 leetcode Length of Last Word

原題鏈接:https://leetcode.com/problems/length-of-last-word/ Description Given a string s consists of upper/lower-case a

原创 leetcode Group Anagrams

原題鏈接:https://leetcode.com/problems/anagrams/ Description Given an array of strings, group anagrams together. For ex

原创 leetcode Plus One

原題鏈接:https://leetcode.com/problems/plus-one/ Description Given a non-negative number represented as an array of dig

原创 leetcode Multiply Strings

原題鏈接:https://leetcode.com/problems/multiply-strings/ Description Given two numbers represented as strings, return m

原创 leetcode 3Sum

原題鏈接:https://leetcode.com/problems/3sum/ Description Given an array S of n integers, are there elements a, b, c in S su

原创 leetcode 355 Design Twitte

leetcode 355 Design Twitte 原題鏈接:https://leetcode.com/problems/design-twitter Description Design a simplified version of

原创 leetcode 18 4Sum

leetcode 18 4Sum 原題鏈接:https://leetcode.com/problems/4sum/ Description Given an array S of n integers, are there elemen

原创 leetcode 71 Simplify Path

leetcode 71 Simplify Path 原題鏈接:https://leetcode.com/problems/simplify-path/ Description Given an absolute path for a fi

原创 leetcode Remove Element

原題鏈接:https://leetcode.com/problems/remove-element/ Description Given an array and a value, remove all instances of that

原创 leetcode LRU Cache

原題鏈接:https://leetcode.com/problems/lru-cache/ Description Design and implement a data structure for Least Recently Used