上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 50 下一页
摘要: Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two 阅读全文
posted @ 2018-08-17 03:03 轻风舞动 阅读(963) 评论(2) 推荐(1) 编辑
摘要: Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible. Note: The l 阅读全文
posted @ 2018-07-25 07:17 轻风舞动 阅读(432) 评论(0) 推荐(0) 编辑
摘要: You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k. Define a pair (u,v) which consists of one element from th 阅读全文
posted @ 2018-07-25 06:59 轻风舞动 阅读(995) 评论(0) 推荐(0) 编辑
摘要: Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. Example 1: Ex 阅读全文
posted @ 2018-07-25 06:39 轻风舞动 阅读(331) 评论(0) 推荐(0) 编辑
摘要: Numbers can be regarded as product of its factors. For example, Write a function that takes an integer n and return all possible combinations of its f 阅读全文
posted @ 2018-07-25 05:57 轻风舞动 阅读(1406) 评论(0) 推荐(0) 编辑
摘要: Given an integer (signed 32 bits), write a function to check whether it is a power of 4. Example:Given num = 16, return true. Given num = 5, return fa 阅读全文
posted @ 2018-05-17 05:43 轻风舞动 阅读(527) 评论(0) 推荐(0) 编辑
摘要: 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? Credits:Speci 阅读全文
posted @ 2018-05-17 05:22 轻风舞动 阅读(429) 评论(0) 推荐(0) 编辑
摘要: Given an integer, write a function to determine if it is a power of two. Example 1: Example 2: Example 3: 给一个整数,写一个函数来判断它是否为2的次方数。 利用计算机用的是二进制的特点,用位操作 阅读全文
posted @ 2018-05-17 04:57 轻风舞动 阅读(648) 评论(0) 推荐(0) 编辑
摘要: Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. This 阅读全文
posted @ 2018-05-09 06:55 轻风舞动 阅读(415) 评论(0) 推荐(0) 编辑
摘要: Given a string s, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can f 阅读全文
posted @ 2018-05-09 04:56 轻风舞动 阅读(598) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 50 下一页