摘要:
Find the Duplicate Number (M) 题目 Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least 阅读全文
摘要:
题目 Given an array of citations sorted in ascending order (each citation is a non-negative integer) of a researcher, write a function to compute the re 阅读全文
摘要:
Search in Rotated Sorted Array (M) 题目 Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5 阅读全文
摘要:
Longest Valid Parentheses (H) 题目 Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parenth 阅读全文
摘要:
Next Permutation (M) 题目 Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such a 阅读全文