上一页 1 2 3 4 5 6 7 8 ··· 16 下一页
摘要: Given an unsorted array of integers, find the length of longest increasing subsequence. Example: Note: There may be more than one LIS combination, it 阅读全文
posted @ 2019-05-14 21:06 小白兔云 阅读(99) 评论(0) 推荐(0) 编辑
摘要: You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time 阅读全文
posted @ 2019-05-14 20:34 小白兔云 阅读(115) 评论(0) 推荐(0) 编辑
摘要: According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John 阅读全文
posted @ 2019-05-14 17:37 小白兔云 阅读(158) 评论(0) 推荐(0) 编辑
摘要: https://juejin.im/entry/596343686fb9a06bbd6f888c 阅读全文
posted @ 2019-05-14 10:49 小白兔云 阅读(259) 评论(0) 推荐(0) 编辑
摘要: Given an Iterator class interface with methods: next() and hasNext(), design and implement a PeekingIterator that support the peek() operation -- it e 阅读全文
posted @ 2019-05-13 15:26 小白兔云 阅读(103) 评论(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 resea 阅读全文
posted @ 2019-05-13 10:06 小白兔云 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index. According 阅读全文
posted @ 2019-05-13 09:38 小白兔云 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. Example 1: Example 2: 题目大意 阅读全文
posted @ 2019-05-12 23:16 小白兔云 阅读(129) 评论(0) 推荐(0) 编辑
摘要: Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. Example: Input: n = 10 Outpu 阅读全文
posted @ 2019-05-10 09:22 小白兔云 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements 阅读全文
posted @ 2019-05-09 21:35 小白兔云 阅读(148) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 16 下一页