04 2015 档案

摘要:MySQL top(MySQL limit)语法SELECT column_name(s)FROM table_nameLIMIT number例子SELECT *FROM PersonsLIMIT 5SQL LIKE 操作符SQL LIKE 操作符语法SELECT column_name(s)FR... 阅读全文
posted @ 2015-04-17 13:22 微微程序媛 阅读(144) 评论(0) 推荐(0) 编辑
摘要:Determine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with ... 阅读全文
posted @ 2015-04-16 05:14 微微程序媛 阅读(89) 评论(0) 推荐(0) 编辑
摘要:SQL SELECT 语句如需获取名为 "LastName" 和 "FirstName" 的列的内容(从名为 "Persons" 的数据库表),请使用类似这样的 SELECT 语句:SELECT LastName,FirstName FROM Persons"Persons" 表:IdLastNam... 阅读全文
posted @ 2015-04-15 15:24 微微程序媛 阅读(211) 评论(0) 推荐(0) 编辑
摘要:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at... 阅读全文
posted @ 2015-04-13 07:41 微微程序媛 阅读(128) 评论(0) 推荐(0) 编辑
摘要:Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".博主对于自己那冗长的代码真是累感不爱了~连注释都不用标了,特别清晰明了,捂脸逃走~只能安慰自己... 阅读全文
posted @ 2015-04-13 02:48 微微程序媛 阅读(145) 评论(0) 推荐(0) 编辑
摘要:The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence (ie... 阅读全文
posted @ 2015-04-12 12:43 微微程序媛 阅读(185) 评论(0) 推荐(0) 编辑
摘要:Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe... 阅读全文
posted @ 2015-04-12 04:37 微微程序媛 阅读(111) 评论(0) 推荐(0) 编辑
摘要:1.Given a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, 2, 3 ... 阅读全文
posted @ 2015-04-11 15:58 微微程序媛 阅读(141) 评论(0) 推荐(0) 编辑
摘要:Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[−2,1,−3,4,−1,2,1,... 阅读全文
posted @ 2015-04-11 11:43 微微程序媛 阅读(242) 评论(0) 推荐(0) 编辑
摘要:public class Solution { public static double Power(double x ,int n){ if(n==0){ return 1; } double v=Power(x,n/2); ... 阅读全文
posted @ 2015-04-11 07:11 微微程序媛 阅读(210) 评论(0) 推荐(0) 编辑
摘要:You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?solution:找规律 int[i]... 阅读全文
posted @ 2015-04-11 05:27 微微程序媛 阅读(106) 评论(0) 推荐(0) 编辑
摘要:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu... 阅读全文
posted @ 2015-04-10 07:45 微微程序媛 阅读(108) 评论(0) 推荐(0) 编辑
摘要:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega... 阅读全文
posted @ 2015-04-10 04:42 微微程序媛 阅读(99) 评论(0) 推荐(0) 编辑
摘要:Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Fo... 阅读全文
posted @ 2015-04-09 13:25 微微程序媛 阅读(107) 评论(0) 推荐(0) 编辑
摘要:Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru... 阅读全文
posted @ 2015-04-09 11:52 微微程序媛 阅读(103) 评论(0) 推荐(0) 编辑
摘要:Given a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not co... 阅读全文
posted @ 2015-04-06 15:02 微微程序媛 阅读(106) 评论(0) 推荐(0) 编辑
摘要:1.Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],[... 阅读全文
posted @ 2015-04-06 14:11 微微程序媛 阅读(217) 评论(0) 推荐(0) 编辑
摘要:Then-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other.Given an integern, return all distinc... 阅读全文
posted @ 2015-04-06 12:27 微微程序媛 阅读(154) 评论(0) 推荐(0) 编辑
摘要:Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated num... 阅读全文
posted @ 2015-04-04 13:24 微微程序媛 阅读(101) 评论(0) 推荐(0) 编辑
摘要:The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"tw... 阅读全文
posted @ 2015-04-04 04:37 微微程序媛 阅读(122) 评论(0) 推荐(0) 编辑
摘要:Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).You are given a target value t... 阅读全文
posted @ 2015-04-03 15:30 微微程序媛 阅读(144) 评论(0) 推荐(0) 编辑
摘要:Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ... 阅读全文
posted @ 2015-04-03 12:04 微微程序媛 阅读(130) 评论(0) 推荐(0) 编辑
摘要:Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))... 阅读全文
posted @ 2015-04-03 11:03 微微程序媛 阅读(135) 评论(0) 推荐(0) 编辑
摘要:Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest... 阅读全文
posted @ 2015-04-03 10:27 微微程序媛 阅读(98) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示