[LeetCode] 728. Self Dividing Numbers

Problem: A self-dividing number is a number that is divisible by every digit it contains. For example, 128 is a self-dividing number because ...

2017-12-26 11:27:32

阅读数 70

评论数 0

[LeetCode] 136. Single Number

Problem: Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a li...

2017-12-25 22:46:03

阅读数 42

评论数 0

[LeetCode] 557. Reverse Words in a String III

Problem: Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initia...

2017-12-25 22:04:53

阅读数 40

评论数 0

[LeetCode] 199. Binary Tree Right Side View

Problem: Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bot...

2017-12-23 13:40:19

阅读数 50

评论数 0

[LeetCode] 494. Target Sum

Problem: You are given a list of non-negative integers, a1, a2, ..., an, and a target, S. Now you have 2 symbols + and -. For each integer, you sh...

2017-12-21 20:36:16

阅读数 60

评论数 0

[LeetCode] 416. Partition Equal Subset Sum

Problem: Given a non-empty array containing only positive integers, find if the array can be partitioned into two subsets such that the sum of elem...

2017-12-21 19:28:48

阅读数 53

评论数 0

[LeetCode] 337. House Robber III

Problem: The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besi...

2017-12-17 21:55:41

阅读数 62

评论数 0

[LeetCode] Convert Sorted Array to Binary Search Tree

Problem: Given an array where elements are sorted in ascending order, convert it to a height balanced BST. For this problem, a height-balance...

2017-12-16 13:13:54

阅读数 66

评论数 0

[LeetCode] 100. Same Tree

Problem: Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are ...

2017-12-16 11:45:29

阅读数 58

评论数 0

[LeetCode] 547. Friend Circles

Problem: There are N students in a class. Some of them are friends, while some are not. Their friendship is transitive in nature. For example, if A...

2017-12-15 23:38:47

阅读数 48

评论数 0

[LeetCode] 650. 2 Keys Keyboard

Problem: Initially on a notepad only one character 'A' is present. You can perform two operations on this notepad for each step: Copy All: You can...

2017-12-13 22:34:08

阅读数 75

评论数 0

[LeetCode] 357. Count Numbers with Unique Digits

Problem: Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x n. Example: Given n = 2, return 91. (The answe...

2017-12-13 00:19:55

阅读数 58

评论数 0

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