CSU "2034" Column Addition Description A multi digit column addition is a formula on adding two integers written like this: A multi digit column addit ...
分类:
其他好文 时间:
2019-02-04 16:51:46
阅读次数:
161
Given an input string (s) and a pattern (p), implement wildcard pattern matching with support for '?' and '*'. The matching should cover the entire in ...
分类:
其他好文 时间:
2019-02-04 15:27:30
阅读次数:
164
算法描述: Given a binary tree, flatten it to a linked list in-place. For example, given the following tree: The flattened tree should look like: 解题思路:从题目可 ...
分类:
其他好文 时间:
2019-02-03 10:44:18
阅读次数:
181
1.原理 //TODO 2.Python Package Scikit-Learn API 2.1输入 数据的特征分为两类,一类是连续型,比如:体重,一种是分类型,比如性别。 在scikit-learn中的Glossary of Common Terms and API Elements有这么一段话 ...
分类:
其他好文 时间:
2019-02-01 23:50:56
阅读次数:
296
Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be ...
分类:
其他好文 时间:
2019-02-01 23:27:38
阅读次数:
269
算法描述: Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserv ...
分类:
其他好文 时间:
2019-02-01 14:19:34
阅读次数:
158
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Example: ...
分类:
其他好文 时间:
2019-01-31 22:59:42
阅读次数:
198
开放封闭原则(Open Close Principle,简称OCP)尽量通过扩展软件实体的行为来实现变化,而不是通过修改已有的代码来实现变化 原始定义:Software entities (classes, modules, functions) should be open for extensi ...
分类:
其他好文 时间:
2019-01-31 19:25:28
阅读次数:
156
http://www.codeceo.com/article/you should learn regex.html Regular Expressions (Regex):正则表达式,软件工程中最为强大,且广泛适用,令人信服的技术之一。从验证电子邮件地址到执行复杂的代码重构器,正则表达式的用途非常 ...
分类:
其他好文 时间:
2019-01-31 10:32:50
阅读次数:
254
https://leetcode.com/problems/top-k-frequent-words/ Given a non-empty list of words, return the k most frequent elements. Your answer should be sorted ...
分类:
其他好文 时间:
2019-01-31 00:15:24
阅读次数:
161