# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'36: Valid Sudokuhttps://oj.leetcode.com/problems/valid-sudoku/Determine if a Sudoku is val...
分类:
编程语言 时间:
2015-02-05 01:58:23
阅读次数:
209
Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are thinki...
分类:
其他好文 时间:
2015-02-04 23:17:55
阅读次数:
162
Q: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
all ...
分类:
其他好文 时间:
2015-02-04 21:52:50
阅读次数:
187
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
all va...
分类:
其他好文 时间:
2015-02-04 09:27:00
阅读次数:
108
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below binary tree and su...
分类:
其他好文 时间:
2015-02-03 23:08:01
阅读次数:
196
[root@server httpd-2.2.4]# /usr/local/apache/bin/apachectl start
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
1)进入apache的安装目录:(视...
分类:
Web程序 时间:
2015-02-03 17:09:56
阅读次数:
142
Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.For exampl...
分类:
其他好文 时间:
2015-02-02 17:53:55
阅读次数:
165
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:
其他好文 时间:
2015-02-01 13:29:34
阅读次数:
148
Q:Determine whether an integer is a palindrome. Do this without extra space.
这道题也是基础题,判断一个数是否是回文数,条件是不能使用额外的空间,意思就是说,你不能把一个Intege转换成string,然后对string进行回文字符串的判断。
另外,如果用Reverse Integer的方法,可能会造成数值溢出,比如判...
分类:
其他好文 时间:
2015-01-31 12:31:11
阅读次数:
169
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
HideTags
Linked List Two
Pointers
#pragma once
#include
using namespace std;
...
分类:
其他好文 时间:
2015-01-30 22:54:42
阅读次数:
174