码迷,mamicode.com
首页 >  
搜索关键字:positive    ( 2430个结果
[LeetCode 1167] Minimum Cost to Connect Sticks
You have some sticks with positive integer lengths. You can connect any two sticks of lengths X and Y into one stick by paying a cost of X + Y. You pe ...
分类:其他好文   时间:2020-01-24 09:32:12    阅读次数:90
1323. Maximum 69 Number
Given a positive integer num consisting only of digits 6 and 9. Return the maximum number you can get by changing at most one digit (6 becomes 9, and ...
分类:其他好文   时间:2020-01-22 10:56:58    阅读次数:75
*Perfect Squares
Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. Example 1: Input: n = 12 O ...
分类:其他好文   时间:2020-01-21 18:22:25    阅读次数:90
PAT Advanced 1020 Tree Traversals (25分)
1020 Tree Traversals (25分) Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequen ...
分类:其他好文   时间:2020-01-20 20:53:02    阅读次数:76
【leetcode】1323. Maximum 69 Number
题目如下: Given a positive integer num consisting only of digits 6 and 9. Return the maximum number you can get by changing at most one digit (6 becomes 9 ...
分类:其他好文   时间:2020-01-20 14:43:03    阅读次数:69
PAT Advanced 1065 A+B and C (64bit) (20分)
Given three integers A, B and C in [?], you are supposed to tell whether A+B>C. Input Specification: The first line of the input gives the positive nu ...
分类:其他好文   时间:2020-01-20 09:30:50    阅读次数:92
PAT Advanced 1152 Google Recruitment (20分)
In July 2004, Google posted on a giant billboard along Highway 101 in Silicon Valley (shown in the picture below) for recruitment. The content is supe ...
分类:其他好文   时间:2020-01-20 09:19:14    阅读次数:64
B. Divisors of Two Integers
B. Divisors of Two Integers Recently you have received two positive integer numbers xx and y. You forgot them, but you remembered a shuffled list cont ...
分类:其他好文   时间:2020-01-18 14:25:38    阅读次数:98
I. Powers Of Two
I. Powers Of Two A positive integer xx is called a power of two if it can be represented as x=2yx=2y, where y is a non-negative integer. So, the power ...
分类:其他好文   时间:2020-01-18 12:25:52    阅读次数:97
1296. Divide Array in Sets of K Consecutive Numbers
Given an array of integers nums and a positive integer k, find whether it's possible to divide this array into sets of k consecutive numbersReturn Tru ...
分类:其他好文   时间:2020-01-18 10:37:01    阅读次数:92
2430条   上一页 1 ... 13 14 15 16 17 ... 243 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!