上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 46 下一页

2015年3月9日

Customers Who Never Order

摘要: Suppose that a website contains two tables, theCustomerstable and theOrderstable. Write a SQL query to find all customers who never order anything.Tab... 阅读全文

posted @ 2015-03-09 20:23 luckygxf 阅读(239) 评论(0) 推荐(0) 编辑

Repeated DNA Sequences

摘要: All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes useful to ... 阅读全文

posted @ 2015-03-09 16:33 luckygxf 阅读(159) 评论(0) 推荐(0) 编辑

Median of Two Sorted Arrays

摘要: There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be ... 阅读全文

posted @ 2015-03-09 14:32 luckygxf 阅读(185) 评论(0) 推荐(0) 编辑

Reverse Bits

摘要: Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), return ... 阅读全文

posted @ 2015-03-09 11:33 luckygxf 阅读(176) 评论(0) 推荐(0) 编辑

2015年3月4日

Rotate Array

摘要: Rotate an array ofnelements to the right byksteps.For example, withn= 7 andk= 3, the array[1,2,3,4,5,6,7]is rotated to[5,6,7,1,2,3,4]. 1 public class ... 阅读全文

posted @ 2015-03-04 22:28 luckygxf 阅读(141) 评论(0) 推荐(0) 编辑

2015年2月4日

Recover Binary Search Tree

摘要: Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space is ... 阅读全文

posted @ 2015-02-04 16:52 luckygxf 阅读(142) 评论(0) 推荐(0) 编辑

Palindrome Partitioning II

摘要: Given a strings, partitionssuch that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning ofs... 阅读全文

posted @ 2015-02-04 10:53 luckygxf 阅读(139) 评论(0) 推荐(0) 编辑

2015年2月2日

Copy List with Random Pointer

摘要: A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy ... 阅读全文

posted @ 2015-02-02 21:33 luckygxf 阅读(228) 评论(0) 推荐(0) 编辑

java中的中文变量和方法

摘要: 在网上看到java居然支持中文变量名、方法。这里我只试了变量名和方法,类名这些没有试...。真是给力 1 package com.gxf.fun; 2 3 4 public class TestForChinese { 5 private String 字符串 = "字符串"; 6 ... 阅读全文

posted @ 2015-02-02 19:22 luckygxf 阅读(1484) 评论(0) 推荐(0) 编辑

Word Break II

摘要: Given a stringsand a dictionary of wordsdict, add spaces insto construct a sentence where each word is a valid dictionary word.Return all such possibl... 阅读全文

posted @ 2015-02-02 15:51 luckygxf 阅读(187) 评论(0) 推荐(0) 编辑

上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 46 下一页

导航