码迷,mamicode.com
首页 >  
搜索关键字:problems    ( 6275个结果
ugly number
leetcode 263 & 264是关于ugly number的;? https://leetcode.com/problems/ugly-number/ https://leetcode.com/problems/ugly-number-ii/ 简单的263,给定一个数,判断该数是否ugly;这个比较直观,只需要判断该...
分类:其他好文   时间:2015-08-19 23:52:28    阅读次数:383
LeetCode:Consecutive Numbers - 找出连续出现的数字
1、题目名称 Consecutive Numbers(找出连续出现的数字) 2、题目地址 https://leetcode.com/problems/consecutive-numbers/ 3、题目内容 写一个SQL,查出表Logs中连续出现至少3次的数字: +----+-----+ |?Id?|...
分类:其他好文   时间:2015-08-19 23:51:13    阅读次数:254
算生日相同的概率
DescriptionSometimes some mathematical results are hard to believe. One of the common problems is the birthday paradox. Suppose you are in a party whe...
分类:其他好文   时间:2015-08-19 23:21:27    阅读次数:178
LeetCode: Ugly Number II
题目链接:https://leetcode.com/problems/ugly-number-ii/ 题目: Write a program to find the n-th ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 1, ...
分类:其他好文   时间:2015-08-19 16:46:37    阅读次数:603
LeetCode: Ugly Number
题目链接:https://leetcode.com/problems/ugly-number/ 题目: Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5....
分类:其他好文   时间:2015-08-19 13:33:56    阅读次数:400
129 Sum Root to Leaf Numbers
129 Sum Root to Leaf Numbers链接:https://leetcode.com/problems/sum-root-to-leaf-numbers/ 问题描述: Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An...
分类:其他好文   时间:2015-08-19 07:08:42    阅读次数:176
100 Same Tree
100 Same Tree链接:https://leetcode.com/problems/same-tree/ 问题描述: Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurall...
分类:其他好文   时间:2015-08-19 07:08:34    阅读次数:146
101 Symmetric Tree
101 Symmetric Tree链接:https://leetcode.com/problems/symmetric-tree/ 问题描述: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree...
分类:其他好文   时间:2015-08-19 07:08:32    阅读次数:143
96 Unique Binary Search Trees
96 Unique Binary Search Trees链接:https://leetcode.com/problems/unique-binary-search-trees/ 问题描述: Given n, how many structurally unique BST’s (binary search trees) that store values 1…n?For example, G...
分类:其他好文   时间:2015-08-19 07:08:28    阅读次数:126
98 Validate Binary Search Tree
98 Validate Binary Search Tree链接:https://leetcode.com/problems/validate-binary-search-tree/ 问题描述: Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as...
分类:其他好文   时间:2015-08-19 01:59:06    阅读次数:171
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!