摘要: 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 阅读全文
posted @ 2020-06-25 08:31 墨云黑 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 题目 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 阅读全文
posted @ 2020-06-25 06:12 墨云黑 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-06-25 05:42 墨云黑 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Longest Valid Parentheses (H) 题目 Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parenth 阅读全文
posted @ 2020-06-25 04:03 墨云黑 阅读(107) 评论(0) 推荐(0) 编辑
摘要: Next Permutation (M) 题目 Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such a 阅读全文
posted @ 2020-06-25 01:38 墨云黑 阅读(103) 评论(0) 推荐(0) 编辑