码迷,mamicode.com
首页 >  
搜索关键字:positive    ( 2430个结果
PAT 1078 Hashing[一般][二次探查法]
The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. ...
分类:其他好文   时间:2018-09-22 14:28:41    阅读次数:271
CodeForces - 55D Beautiful numbers (数位DP)
Volodya is an odd boy and his taste is strange as well. It seems to him that a positive integer number is beautiful if and only if it is divisible by ...
分类:其他好文   时间:2018-09-22 01:07:03    阅读次数:230
[LeetCode] 25. Reverse Nodes in k-Group 每k个一组翻转链表
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer and is less than or equal to ...
分类:其他好文   时间:2018-09-21 10:51:35    阅读次数:173
[Math_Medium] 279. Perfect Squares 2018-09-19
"原题:279. 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. ...
分类:其他好文   时间:2018-09-20 16:02:50    阅读次数:151
UVA12265-Selling Land(单调栈)
Problem UVA12265-Selling Land Accept: 137 Submit: 782Time Limit: 3000 mSec Problem Description Input On the ?rst line a positive integer: the number o ...
分类:其他好文   时间:2018-09-20 11:26:53    阅读次数:201
[LeetCode] 209. Minimum Size Subarray Sum 最短子数组之和
Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't ...
分类:编程语言   时间:2018-09-20 11:07:27    阅读次数:166
leetcode41 - First Missing Positive - hard
Given an unsorted integer array, find the smallest missing positive integer.Example 1:Input: [1,2,0]Output: 3Example 2:Input: [3,4,-1,1]Output: 2Examp ...
分类:其他好文   时间:2018-09-16 12:23:58    阅读次数:137
PAT 1144 The Missing Number
Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list. Input Specification: Each input file contains ...
分类:其他好文   时间:2018-09-15 22:07:00    阅读次数:220
PAT 1145 Hashing - Average Search Time
The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of inte ...
分类:其他好文   时间:2018-09-15 22:06:26    阅读次数:218
PAT 1138 Postorder Traversal
Suppose that all the keys in a binary tree are distinct positive integers. Given the preorder and inorder traversal sequences, you are supposed to out ...
分类:其他好文   时间:2018-09-15 20:55:10    阅读次数:151
2430条   上一页 1 ... 50 51 52 53 54 ... 243 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!