Problem Description
Consider a group of N students and P courses. Each student visits zero, one or more than one courses. Your task is to determine whether it is possible to form a committee of exactly P students that satisfies simultaneously the condition...
分类:
编程语言 时间:
2015-04-28 09:40:23
阅读次数:
158
Search in Rotated Sorted Array IIFollow up for "Search in Rotated Sorted Array":
What if duplicates are allowed?Would this affect the run-time complexity? How and why?Write a function to determine if a...
分类:
编程语言 时间:
2015-04-27 18:32:37
阅读次数:
153
Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer...
分类:
移动开发 时间:
2015-04-27 18:11:45
阅读次数:
154
A message containing letters from A-Z is being encoded to numbers using the
following mapping:
'A' -> 1
'B' -> 2
...
'Z' -> 26
Given an encoded message containing digits, determine the total nu...
分类:
其他好文 时间:
2015-04-27 15:16:14
阅读次数:
124
Happy Number问题:Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any p...
分类:
移动开发 时间:
2015-04-26 22:42:59
阅读次数:
166
https://leetcode.com/problems/happy-number/Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following ...
分类:
移动开发 时间:
2015-04-26 22:38:15
阅读次数:
172
目录:Linked List CycleBinary Tree Right Side ViewLinked List Cycle 返回目录Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it...
分类:
其他好文 时间:
2015-04-26 16:43:25
阅读次数:
176
Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth...
分类:
其他好文 时间:
2015-04-26 16:31:44
阅读次数:
119
题目描述Write an algorithm to determine if a number is “happy”.A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares...
分类:
移动开发 时间:
2015-04-26 12:27:42
阅读次数:
114
题目链接:happy-number
Write an algorithm to determine if a number is "happy".
A happy number is a number defined by the following process: Starting with any positive integer, replace the numbe...
分类:
移动开发 时间:
2015-04-26 10:53:59
阅读次数:
123