selectt.idend_usr_id,t.end_user_nameend_usr_name,t.end_user_real_nameend_usr_nknm,t.end_user_passwordend_usr_pswd,t.end_user_birthdayend_usr_bthd,t.mobilemobl_num,t.phonephone_num,t.valid_mobile_phone_numbindg_mobl_num,t.end_user_emailend_usr_email,substr(t..
分类:
数据库 时间:
2015-05-06 18:22:57
阅读次数:
458
Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only n...
分类:
其他好文 时间:
2015-05-06 14:40:34
阅读次数:
97
这个题目leetcode上提示用动态规划,但是那样要O(n^2)。我自己想出了一个O(n)的算法,并提交通过。【题目】Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.
For "((...
分类:
编程语言 时间:
2015-05-06 11:00:58
阅读次数:
123
写出一个函数 anagram(s,
t) 去判断两个字符串是否是颠倒字母顺序构成的
样例
给出 s="abcd",t="dcab",返回 true
python:先排序后比较
class Solution:
"""
@param s: The first string
@param b: The second string
@retu...
分类:
其他好文 时间:
2015-05-06 09:21:10
阅读次数:
137
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:
其他好文 时间:
2015-05-05 23:46:55
阅读次数:
180
https://leetcode.com/problems/valid-palindrome/ Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring...
分类:
其他好文 时间:
2015-05-05 12:13:38
阅读次数:
94
题目:
Given a string containing just the characters '(', ')', '{', '}', '[' and ']',
determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" are...
分类:
其他好文 时间:
2015-05-05 10:35:05
阅读次数:
144
iPhone指令集本文所讲的内容都是围绕iPhone的CPU指令集(想了解ARM指令集的同学请点击这里),现在先说说不同型号的iPhone都使用的是什么指令集:ARMv8/ARM64=iPhone5s,iPadAir,RetinaiPadMiniARMv7s=iPhone5,iPhone5c,iPa...
分类:
其他好文 时间:
2015-05-04 23:51:50
阅读次数:
214
1563: Lexicography
Time Limit: 1 Sec Memory Limit:
128 MB
Submit: 342 Solved: 111
[Submit][Status][Web
Board]
Description
An anagram of a string is any string that can be formed using the...
分类:
其他好文 时间:
2015-05-04 22:18:39
阅读次数:
128
An anagram of a string is any string that can be formedusing the same letters as the original. (We consider the original string ananagram of itself as well.) For example, the string
ACM has thefollow...
分类:
其他好文 时间:
2015-05-04 22:13:13
阅读次数:
277