摘要: Combination Sum (M) 题目 Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations i 阅读全文
posted @ 2020-06-27 02:46 墨云黑 阅读(72) 评论(0) 推荐(0) 编辑
摘要: Count and Say (E) 题目 The count-and-say sequence is the sequence of integers with the first five terms as following: 1. 1 2. 11 3. 21 4. 1211 5. 111221 阅读全文
posted @ 2020-06-27 02:16 墨云黑 阅读(74) 评论(0) 推荐(0) 编辑
摘要: Rectangle Area (M) 题目 Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bottom left corner and 阅读全文
posted @ 2020-06-26 07:05 墨云黑 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Game of Life (M) 题目 According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British 阅读全文
posted @ 2020-06-26 06:14 墨云黑 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Sudoku Solver (H) 题目 Write a program to solve a Sudoku puzzle by filling the empty cells. A sudoku solution must satisfy all of the following rules: E 阅读全文
posted @ 2020-06-26 03:48 墨云黑 阅读(183) 评论(0) 推荐(0) 编辑
摘要: Valid Sudoku (M) 题目 Determine if a 9x9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules: Each row mu 阅读全文
posted @ 2020-06-26 02:33 墨云黑 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Search Insert Position (E) 题目 Given a sorted array and a target value, return the index if the target is found. If not, return the index where it woul 阅读全文
posted @ 2020-06-26 01:56 墨云黑 阅读(67) 评论(0) 推荐(0) 编辑
摘要: Find First and Last Position of Element in Sorted Array (M) 题目 Given an array of integers nums sorted in ascending order, find the starting and ending 阅读全文
posted @ 2020-06-26 01:49 墨云黑 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑