原创 [LeetCode 252] Meeting Rooms
Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si < ei), determine
原创 [LeetCode 283] Move Zeroes
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non
原创 [LeetCode 282] Expression Add Operator
Given a string that contains only digits 0-9 and a target value, return all possibilities to add binary operators (not
原创 [LeetCode 253] Meeting Rooms II
Given an array of meeting time intervals consisting of start and end times [[s1,e1], [s2,e2],...] (si < ei), find the m
原创 [LeetCode 287] Find the Duplicate Number
Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least o
原创 [LeetCode294] Flip Game II
You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + an
原创 [LeetCode 332] Reconstruct Itinerary
Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the i
原创 [LeetCode 267] Palindrome Permutation II
Given a string s, return all the palindromic permutations (without duplicates) of it. Return an empty list if no pa
原创 [LeetCode 322] Coin Change
You are given coins of different denominations and a total amount of money amount. Write a function to compute the fe
原创 [LeetCode 330] Patching array
Given a sorted positive integer array nums and an integer n, add/patch elements to the array such that any number in
原创 [LeetCode 329] Longest Increasing Path in a Matrix
Given an integer matrix, find the length of the longest increasing path. From each cell, you can either move to four
原创 [LeetCode328] Odd Even Linked List
Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking
原创 [LeetCode 316] Remove Duplicate Letters
Given a string which contains only lowercase letters, remove duplicate letters so that every letter appear once and o
原创 [LeetCode 299] Bulls and Cows
You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to g
原创 [Leetcode 266] Palindrome Permutation
Given a string, determine if a permutation of the string could form a palindrome. For example,"code" -> False, "aab"