上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 30 下一页
摘要: Question: Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2 阅读全文
posted @ 2016-02-20 21:03 江湖小妞 阅读(166) 评论(0) 推荐(0) 编辑
摘要: Question: Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nu 阅读全文
posted @ 2016-02-19 17:51 江湖小妞 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Question: Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two 阅读全文
posted @ 2016-02-19 16:52 江湖小妞 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Question: Given an array of integers, every element appears three times except for one. Find that single one. Note:Your algorithm should have a linear 阅读全文
posted @ 2016-02-19 11:05 江湖小妞 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Question: Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. pop( 阅读全文
posted @ 2016-02-15 10:32 江湖小妞 阅读(202) 评论(0) 推荐(0) 编辑
摘要: Question: Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right co 阅读全文
posted @ 2016-02-14 19:02 江湖小妞 阅读(223) 评论(0) 推荐(0) 编辑
摘要: geQuestion: Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Given nums = [-2, 0, 3, -5, 阅读全文
posted @ 2016-02-14 09:53 江湖小妞 阅读(354) 评论(0) 推荐(0) 编辑
摘要: Question: Given an integer, write a function to determine if it is a power of three. Follow up:Could you do it without using any loop / recursion? Ana 阅读全文
posted @ 2016-02-13 10:17 江湖小妞 阅读(199) 评论(0) 推荐(0) 编辑
摘要: Question: Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number a 阅读全文
posted @ 2016-02-07 23:38 江湖小妞 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 正则表达式是处理字符串的一种表示方式,需要额外的支持工具来辅助在这里我们使用grep。另外,不同的语系对正则表达式的输出会有不同的影响效果。举例来说,在英文大小写的编码顺序中,zh_CN.big5 与 C 两种语系的输出结果分别如下:LANG = C 时: 0 1 2 3 4 ... A B ... 阅读全文
posted @ 2016-01-20 19:04 江湖小妞 阅读(391) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 30 下一页