码迷,mamicode.com
首页 >  
搜索关键字:determine    ( 2744个结果
hdu Courses 1083 二分匹配 ,匈牙利算法。。水题
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
leetcode 7. 在有序可重复数组旋转后搜索 Search in Rotated Sorted Array II
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
【leetcode】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...
分类:移动开发   时间:2015-04-27 18:11:45    阅读次数:154
Decode Ways -- leetcode
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
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
Happy Number
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
LeetCode(Medium)
目录: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
leetcode:Balanced Binary Tree
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
LeetCode (24) 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 number by the sum of the squares...
分类:移动开发   时间:2015-04-26 12:27:42    阅读次数:114
[LeetCode 202] Happy Number
题目链接: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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!