算法
神奇大叶子
精通 Python、Java、Golang等技术名词拼写。 擅长各种从入门到放弃。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Digit Counts
Digit Counts Description Count the number of k’s between 0 and n. k can be 0 - 9. Example # Example1 Input: k = 1, n = 1 Output: 1 Explanation: In [0, 1], we found that 1 appeared once (1). # Exampl...原创 2019-06-03 08:48:41 · 920 阅读 · 0 评论 -
Shuffle an Array
Shuffle an Array Description Shuffle a set of numbers without duplicates. Example // Init an array with set 1, 2, and 3. int[] nums = {1,2,3}; Solution solution = new Solution(nums); // Shuffle the a...原创 2019-06-18 22:58:53 · 186 阅读 · 0 评论 -
Trailing Zeros
Trailing Zeros Description Write an algorithm which computes the number of trailing zeros in n factorial. Example # Example1 Input: 11 Output: 2 Explanation: 11! = 39916800, so the output should b...原创 2019-06-09 23:05:20 · 222 阅读 · 0 评论 -
Longest Substring Without Repeating Characters
Longest Substring Without Repeating Characters Description Given a string, find the length of the longest substring without repeating characters. Example Example 1: Input: "abcabcbb" Output: 3 Expla...原创 2019-06-25 09:32:30 · 146 阅读 · 0 评论
分享