Given two strings s and t, write a function to determine if t is an anagram of s. For example,s = "anagram", t = "nagaram", return true.s = "rat", t = ...
分类:
其他好文 时间:
2016-09-13 11:42:46
阅读次数:
110
Given a linked list, remove the nth node from the end of list and return its head. For example, Note:Given n will always be valid.Try to do this in on ...
分类:
其他好文 时间:
2016-09-13 11:40:14
阅读次数:
135
Given a positive integer, return its corresponding column title as appear in an Excel sheet. For example: Solution2: 把数字减一再运算就不用考虑其他问题了。参考了discussion ...
分类:
其他好文 时间:
2016-09-13 07:56:43
阅读次数:
153
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. For exa ...
分类:
其他好文 时间:
2016-09-13 07:53:07
阅读次数:
136
Table 12.18 Information Functions NameDescription BENCHMARK() Repeatedly execute an expression CHARSET() Return the character set of the argument COER ...
分类:
数据库 时间:
2016-09-13 06:48:40
阅读次数:
289
Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive. For example, given the range [5, ...
分类:
其他好文 时间:
2016-09-13 06:46:58
阅读次数:
132
恢复内容开始 python函数的定义 函数就是把一段实现某一个功能的代放进一个封装的方法名里,这个方法就叫做函数名 函数的参数 在这段代码里: a,b是形参 100,20是实参 所谓实参,就是是实在在的传递的参数,形参就是用来接收的参数 下面说返回值:return 返回值就是函数执行完以后,最后返回 ...
分类:
编程语言 时间:
2016-09-13 01:29:56
阅读次数:
184
题目: Write a function that takes a string as input and reverse only the vowels of a string. Example 1:Given s = "hello", return "holle". Example 2:Give ...
分类:
其他好文 时间:
2016-09-13 00:10:05
阅读次数:
137
return语句用来从一个函数 返回 即跳出函数。我们也可选从函数 返回一个值 。使用字面意义上的语句~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~例7.7 使用字面意义上的语句 #!/usr/bin/python # Filename: func_return.py def m ...
分类:
其他好文 时间:
2016-09-12 21:55:37
阅读次数:
112
题目: Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Note: Do not modify the linked list. Follow up: Ca ...
分类:
其他好文 时间:
2016-09-12 20:38:48
阅读次数:
170