Look-and-say sequence is a sequence of integers as the following: D, D1, D111, D113, D11231, D112213111, ... where D is in [0, 9] except 1. The (n+1)s ...
分类:
其他好文 时间:
2020-04-15 00:24:16
阅读次数:
63
This is a chart of GM Multiple diagnostic interface comparison: GM MDI 1 vs. GM MDI 2 kit. Therefore, it’s easy to find that the GM MDI 2 multiple dia ...
分类:
其他好文 时间:
2020-04-11 12:50:38
阅读次数:
69
Problem : Reverse bits of a given 32 bits unsigned integer. Example 1: Example 2: Note: 思路 : Solution (C++) : 性能 : Runtime: 4 ms Memory Usage: 6.7 MB ...
分类:
其他好文 时间:
2020-04-06 17:33:56
阅读次数:
69
巩固 1 # R-4.1 2 def find_max(data): 3 n = len(data) 4 if n == 1: 5 return data[0] 6 elif data[0] > data[1]: 7 data.pop(1) 8 elif data[0] < data[1]: 9 d ...
分类:
编程语言 时间:
2020-03-23 20:33:30
阅读次数:
80
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.Your algorithm should run in O(n) complexity.Example... ...
分类:
其他好文 时间:
2020-02-27 11:41:45
阅读次数:
73
原题链接在这里:https://leetcode.com/problems/dice-roll-simulation/ 题目: A die simulator generates a random number from 1 to 6 for each roll. You introduced a ...
分类:
其他好文 时间:
2020-02-18 14:53:26
阅读次数:
60
1 """ 2 Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. 3 An example is the root-to-leaf path 1- ...
分类:
其他好文 时间:
2020-02-13 22:42:21
阅读次数:
82
Given an array nums of integers, return how many of them contain an even number of digits. Example 1: Input: nums = [12,345,2,6,7896]Output: 2Explanat ...
分类:
其他好文 时间:
2020-02-10 17:53:55
阅读次数:
65
一、date 说明:按照指定格式查看系统的时间,通过date也可以设置系统的时间; 常用参数: -s:修改系统时间指定时间格式; -d:按照指定格式显示指定的时间,非系统时间;? %b locale's abbreviated month name (e.g., Jan)(月份的缩写) %B loc ...
分类:
其他好文 时间:
2020-02-05 13:43:28
阅读次数:
54
从web现状谈及性能优化 原文出处:《Karolina Szczur: The State of the Web》 性能优化指南The Internet is growing exponentially, and so is the Web platform we create. Often tho ...
分类:
Web程序 时间:
2020-01-16 00:41:36
阅读次数:
106