上一页 1 ··· 7 8 9 10 11 12 13 14 下一页
摘要: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo 阅读全文
posted @ 2016-05-25 21:11 米开朗菠萝 阅读(219) 评论(0) 推荐(0)
摘要: Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, you 阅读全文
posted @ 2016-05-25 20:48 米开朗菠萝 阅读(199) 评论(0) 推荐(0)
摘要: Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example,"A man, a plan, a canal: Pan 阅读全文
posted @ 2016-05-25 20:31 米开朗菠萝 阅读(158) 评论(0) 推荐(0)
摘要: Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 click to show spoilers. Have you thought about this? Here a 阅读全文
posted @ 2016-05-24 21:46 米开朗菠萝 阅读(162) 评论(0) 推荐(0)
摘要: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single 阅读全文
posted @ 2016-05-24 21:36 米开朗菠萝 阅读(229) 评论(0) 推荐(0)
摘要: Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time complexity. 转:http://www.jianshu.com 阅读全文
posted @ 2016-05-23 22:20 米开朗菠萝 阅读(182) 评论(0) 推荐(0)
摘要: Description: Count the number of prime numbers less than a non-negative number, n. 阅读全文
posted @ 2016-05-23 21:52 米开朗菠萝 阅读(236) 评论(0) 推荐(0)
摘要: Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 题目:求2个二进制字符串的和,结果也要二进制字符串输出。 阅读全文
posted @ 2016-05-20 21:55 米开朗菠萝 阅读(305) 评论(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? 判断整数是不是3的幂数 阅读全文
posted @ 2016-05-20 20:44 米开朗菠萝 阅读(353) 评论(0) 推荐(0)
摘要: Determine whether an integer is a palindrome. Do this without extra space. click to show spoilers. Some hints: Could negative integers be palindromes? 阅读全文
posted @ 2016-05-19 23:34 米开朗菠萝 阅读(229) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 下一页