- 博客(5)
- 收藏
- 关注
原创 leetcode 205: Isomorphic Strings
Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to gett.All occurrences of a character must be replaced with a
2015-04-30 04:54:59 8377
原创 leetcode 204: Count Primes
Description:Count the number of prime numbers less than a non-negative number, n[思路]素数不能被比它小的整数整除, 建一个boolean 数组, 从2开始, 把其倍数小于N的都删掉.注意 inner loop从i开始, 比i小的会在以前就被check过.[CODE]pu
2015-04-29 08:33:10 12103 1
原创 leetcode 202: Happy Number
Happy NumberTotal Accepted: 3585 Total Submissions: 10859Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting wi
2015-04-25 07:17:51 8740
原创 leetcode 203: Remove Linked List Elements
Remove Linked List ElementsTotal Accepted: 2921 Total Submissions: 10427Remove all elements from a linked list of integers that have value val.ExampleGiven: 1 --> 2 --> 6 --> 3 -->
2015-04-25 06:47:30 5684
原创 Leetcode 198: House Robber
House Robber Total Accepted: 642 Total Submissions: 2562You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopp
2015-04-01 02:51:09 4965
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人