自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

西施豆腐渣

leetcode solutions by java, c++ and python

  • 博客(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关注的人

提示
确定要删除当前文章?
取消 删除