摘要:
https://leetcode.com/problems/move-zeroes/#/description Given an array nums, write a function to move all 0's to the end of it while maintaining the r
阅读全文
posted @ 2017-05-22 20:24
Premiumlab
阅读(128)
推荐(0)
摘要:
https://leetcode.com/articles/two-sum/#approach-2-two-pass-hash-table-accepted Question Given an array of integers, return indices of the two numbers
阅读全文
posted @ 2017-05-22 11:47
Premiumlab
阅读(248)
推荐(0)
摘要:
3-1 scrore Here is a string with o and x. The length is between 1 to 80. Calcuate the score. The score of o is the consecutive o appeared so far. The
阅读全文
posted @ 2017-04-16 20:15
Premiumlab
阅读(98)
推荐(0)
摘要:
https://leetcode.com/problems/rotate-array/#/description Restatement Rotate an array of n elements to the right by k steps. For example, with n = 7 an
阅读全文
posted @ 2017-04-10 09:49
Premiumlab
阅读(105)
推荐(0)
摘要:
http://www.1point3acres.com/bbs/thread-218639-1-1.html
阅读全文
posted @ 2017-04-07 11:40
Premiumlab
阅读(121)
推荐(0)
摘要:
Ex Input some integers and output their min, max and average values (keep three decimal places). It is guaranteed that each input number is a integer
阅读全文
posted @ 2017-03-08 17:19
Premiumlab
阅读(191)
推荐(0)
摘要:
1-1 Input three integers and output the average number. Keep three decimal places. 1-2 Input Fahrenheit temperature f, output the centigrade degree c.
阅读全文
posted @ 2017-03-04 10:36
Premiumlab
阅读(247)
推荐(0)
摘要:
https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/ Restatement Given an array of integers that is already sorted in ascending order, find
阅读全文
posted @ 2017-02-05 17:38
Premiumlab
阅读(128)
推荐(0)
摘要:
https://leetcode.com/problems/remove-duplicates-from-sorted-array/ Restatement Given a sorted array, remove the duplicates in place such that each ele
阅读全文
posted @ 2017-02-05 11:45
Premiumlab
阅读(147)
推荐(0)