自定义博客皮肤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

  • 博客(11)
  • 收藏
  • 关注

原创 leetcode 39: Combination Sum

Total Accepted: 32226Total Submissions: 117691Given a set of candidate numbers (C) and a target number (T), find all unique combinations inC where the candidate numbers sums to T.

2015-01-31 15:13:03 1248

原创 leetcode 36: Valid Sudoku

Total Accepted: 24574Total Submissions: 90344Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells

2015-01-29 12:59:05 2797 1

原创 leetcode 160: Read N Characters Given Read4 II - Call multiple times

Total Accepted: 909 Total Submissions: 4757The API: int read4(char *buf) reads 4 characters at a time from a file.The return value is the actual number of characters read. For example, i

2015-01-28 08:35:22 2075

原创 leetcode 159: Longest Substring with At Most Two Distinct Characters

Total Accepted: 1167 Total Submissions: 3961 Given a string, find the length of the longest substring T that contains at most 2 distinct characters.For example,Given s = “eceba”,T is

2015-01-28 04:05:56 2835

原创 leetcode 179: Largest Number

Largest NumberTotal Accepted: 2269 Total Submissions: 15366Given a list of non negative integers, arrange them such that they form the largest number.For example, given [3, 30, 34, 5, 9],

2015-01-16 04:12:19 5035 1

原创 leetcode 174: Dungeon Game

Dungeon GameTotal Accepted: 332 Total Submissions: 2130The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N ro

2015-01-07 08:42:41 2448 1

原创 leetcode 157: Read N Characters Given Read4

Read N Characters Given Read4Total Accepted: 960 Total Submissions: 3775The API: int read4(char *buf) reads 4 characters at a time from a file.The return value is the actual number of char

2015-01-06 14:30:42 4849

原创 leetcode 166: Fraction to Recurring Decimal

Fraction to Recurring DecimalTotal Accepted: 3168 Total Submissions: 27432Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.

2015-01-06 09:54:03 2651

原创 leetcode 156: Binary Tree Upside Down

Binary Tree Upside DownTotal Accepted: 813 Total Submissions: 2515Given a binary tree where all the right nodes are either leaf nodes with a sibling (a left node that shares the same parent

2015-01-03 15:03:53 3849

原创 leetcode 161: One Edit Distance

One Edit DistanceTotal Accepted: 709 Total Submissions: 3097Given two strings S and T, determine if they are both one edit distance apart.[分析]delete, add, replace 三种都是 One edit dista

2015-01-02 13:41:19 5775

原创 leetcode 173: Binary Search Tree Iterator

Binary Search Tree IteratorTotal Accepted: 1141 Total Submissions: 3857Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.

2015-01-02 12:44:56 4490

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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