上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 31 下一页
摘要: 题目: Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occur 阅读全文
posted @ 2017-02-25 03:05 panini 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 题目: Description: Count the number of prime numbers less than a non-negative number, n. Credits:Special thanks to @mithmatt for adding this problem and 阅读全文
posted @ 2017-02-24 06:13 panini 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 题目: Remove all elements from a linked list of integers that have value val. ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6Return: 1 --> 阅读全文
posted @ 2017-02-24 04:35 panini 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 题目: Write an algorithm to determine if a number is "happy". A happy number is a number defined by the following process: Starting with any positive in 阅读全文
posted @ 2017-02-24 02:48 panini 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 题目: You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stoppin 阅读全文
posted @ 2017-02-23 03:14 panini 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 题目: Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight). For example, the 32- 阅读全文
posted @ 2017-02-22 23:26 panini 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 题目: Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), r 阅读全文
posted @ 2017-02-22 05:28 panini 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 题目: Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4]. 阅读全文
posted @ 2017-02-22 03:11 panini 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an integer n, return the number of trailing zeroes in n!. Note: Your solution should be in logarithmic time complexity. 链接: http://leetcode. 阅读全文
posted @ 2017-02-22 02:23 panini 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 题目: Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding column number. For example 阅读全文
posted @ 2017-02-21 11:45 panini 阅读(127) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 31 下一页