Anagramic squaresBy replacing each of the letters in the word CARE with 1, 2, 9, and 6 respectively, we form a square number: 1296 = 362. What is rema...
分类:
其他好文 时间:
2015-12-07 22:42:29
阅读次数:
343
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2015-12-07 20:30:10
阅读次数:
183
题目:There is a new alien language which uses the latin alphabet. However, the order among letters are unknown to you. You receive a list of words from ...
分类:
其他好文 时间:
2015-12-07 15:55:04
阅读次数:
184
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2015-12-07 00:26:22
阅读次数:
152
https://leetcode.com/problems/decode-ways/A message containing letters fromA-Zis being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...
分类:
其他好文 时间:
2015-12-03 23:18:46
阅读次数:
270
1.加密算法大全:RSA:RSA is made of the initial letters of the surnames of Ron Rivest, Adi Shamir, and Leonard Adleman, who first publicly described the algor...
分类:
编程语言 时间:
2015-12-03 00:50:08
阅读次数:
331
#!/usr/bin/env python#--*-- coding:utf-8 --*--"""标识符合法性检查,首先要以字母或者下划线开始,后面要跟字母,下划线或者数字这个例子只检查长度大于等于2的标志符"""import stringalphas = string.letters + '_'n...
分类:
其他好文 时间:
2015-12-02 14:26:44
阅读次数:
217
Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjac...
分类:
其他好文 时间:
2015-12-01 23:11:18
阅读次数:
320
问题:Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telep...
分类:
其他好文 时间:
2015-11-27 14:57:24
阅读次数:
158
C++ 1 class Solution { 2 public: 3 /** 4 * @param A: A string includes Upper Case letters 5 * @param B: A string includes Upper Case let...
分类:
其他好文 时间:
2015-11-27 06:38:11
阅读次数:
127