摘要: to be continued 阅读全文
posted @ 2018-06-23 21:55 赖兴宇 阅读(182) 评论(0) 推荐(0)
摘要: Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. Th 阅读全文
posted @ 2018-06-23 21:23 赖兴宇 阅读(212) 评论(0) 推荐(0)
摘要: Given an array of size n, find the majority element. The majority element is the element that appears more than⌊ n/2 ⌋ times. You may assume that the 阅读全文
posted @ 2018-06-23 20:51 赖兴宇 阅读(142) 评论(0) 推荐(0)
摘要: Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. Example: Inpu 阅读全文
posted @ 2018-06-23 20:40 赖兴宇 阅读(149) 评论(0) 推荐(0)
摘要: 1096 Consecutive Factors (20)(20 分) Among all the factors of a positive integer N, there may exist several consecutive numbers. For example, 630 can b 阅读全文
posted @ 2018-06-23 15:36 赖兴宇 阅读(502) 评论(0) 推荐(0)
摘要: Mice and Rice is the name of a programming contest in which each programmer must write a piece of code to control the movements of a mouse in a given 阅读全文
posted @ 2018-06-23 14:45 赖兴宇 阅读(152) 评论(0) 推荐(0)
摘要: Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, given "Is PAT&TAP symmetric?", the longest sym 阅读全文
posted @ 2018-06-23 13:11 赖兴宇 阅读(100) 评论(0) 推荐(0)
摘要: Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which cou 阅读全文
posted @ 2018-06-23 12:44 赖兴宇 阅读(161) 评论(0) 推荐(0)