来源:codeforces E. Tetrahedron 来源:codeforces E. Tetrahedron You are given a tetrahedron. Let's mark its vertices with letters A, B, C and D correspondin ...
分类:
其他好文 时间:
2018-03-10 18:49:09
阅读次数:
205
Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible stri ...
分类:
其他好文 时间:
2018-03-09 21:22:33
阅读次数:
235
一 安装低版本git 1/ git --version 检查git版本 是否有安装 2/ yum remove git 有的话 可以删除 3/ yum install -y git 安装1.7.1 4/ 下载 Git for Windows,地址:https://git-for-windows.gi ...
分类:
其他好文 时间:
2018-03-09 15:33:42
阅读次数:
216
接上一节,在把关键字改成string类型之后,需要对key进行hash化,这里使用了两种方式: 1.相加法 2.幂乘法 同时防止越界,我们使用了压缩值的方法即取余数。但是由于int的长度限制,我们使用了biginterger方法。 info类和上节相同,这里只丢出hashTable的源代码: pub ...
分类:
其他好文 时间:
2018-03-08 14:10:05
阅读次数:
169
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each num ...
分类:
其他好文 时间:
2018-03-04 23:57:46
阅读次数:
304
Given a set of candidate numbers (C) (without duplicates) and a target number (T), find all unique combinations in C where the candidate numbers sums ...
分类:
其他好文 时间:
2018-03-04 18:09:53
阅读次数:
134
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: " ...
分类:
其他好文 时间:
2018-03-03 18:09:57
阅读次数:
112
Description You are given a bunch of wooden sticks. Each endpoint of each stick is colored with some color. Is it possible to align the sticks in a st ...
分类:
其他好文 时间:
2018-03-03 14:06:56
阅读次数:
167
Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telepho ...
分类:
其他好文 时间:
2018-03-03 10:54:39
阅读次数:
220
A message containing letters from A-Z is being encoded to numbers using the following mapping: Given an encoded message containing digits, determine t ...
分类:
其他好文 时间:
2018-02-28 16:26:42
阅读次数:
136