上一页 1 2 3 4 5 6 7 8 ··· 11 下一页

2016年7月28日

摘要: 1 package nn; 2 3 import java.io.File; 4 5 import jxl.Cell; 6 import jxl.Sheet; 7 import jxl.Workbook; 8 import jxl.write.Label; 9 import jxl.write.WritableSheet; 10 import jxl.write.Writa... 阅读全文
posted @ 2016-07-28 10:38 烁宝宝 阅读(898) 评论(0) 推荐(0)

2016年6月27日

摘要: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple 阅读全文
posted @ 2016-06-27 15:28 烁宝宝 阅读(120) 评论(0) 推荐(0)

2016年6月24日

摘要: 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 a 阅读全文
posted @ 2016-06-24 15:57 烁宝宝 阅读(119) 评论(0) 推荐(0)

2016年6月23日

摘要: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction 阅读全文
posted @ 2016-06-23 19:00 烁宝宝 阅读(96) 评论(0) 推荐(0)
 
摘要: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you cl 阅读全文
posted @ 2016-06-23 12:43 烁宝宝 阅读(143) 评论(0) 推荐(0)

2016年6月13日

摘要: Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n. Example:Given n = 2, return 91. (The answer should be the 阅读全文
posted @ 2016-06-13 16:56 烁宝宝 阅读(173) 评论(0) 推荐(0)
 
摘要: Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the dept 阅读全文
posted @ 2016-06-13 16:13 烁宝宝 阅读(237) 评论(0) 推荐(0)

2016年6月7日

摘要: Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't one, return 阅读全文
posted @ 2016-06-07 15:10 烁宝宝 阅读(146) 评论(0) 推荐(0)
 
摘要: Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. For exam 阅读全文
posted @ 2016-06-07 09:53 烁宝宝 阅读(101) 评论(0) 推荐(0)
 
摘要: Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, -, *, / operators a 阅读全文
posted @ 2016-06-07 09:36 烁宝宝 阅读(111) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页