摘要: Question Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representat 阅读全文
posted @ 2017-09-10 18:41 清水汪汪 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Question Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes or end inde 阅读全文
posted @ 2017-09-10 13:19 清水汪汪 阅读(151) 评论(0) 推荐(0) 编辑
摘要: Question Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the ma 阅读全文
posted @ 2017-09-10 11:43 清水汪汪 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Question A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive element 阅读全文
posted @ 2017-09-10 11:08 清水汪汪 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Question 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, 2, 阅读全文
posted @ 2017-09-10 10:27 清水汪汪 阅读(119) 评论(0) 推荐(0) 编辑