码迷,mamicode.com
首页 >  
搜索关键字:given n integers    ( 24278个结果
【leetcode】1347. Minimum Number of Steps to Make Two Strings Anagram
题目如下: Given two equal-size strings s and t. In one step you can choose any character of t and replace it with another character. Return the minimum nu ...
分类:其他好文   时间:2020-02-09 18:39:10    阅读次数:68
【leetcode】1342. Number of Steps to Reduce a Number to Zero
题目如下: Given a non-negative integer num, return the number of steps to reduce it to zero. If the current number is even, you have to divide it by 2, ot ...
分类:其他好文   时间:2020-02-09 18:31:58    阅读次数:64
【leetcode】1343. Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
题目如下: Given an array of integers arr and two integers k and threshold. Return the number of sub-arrays of size k and average greater than or equal to  ...
分类:其他好文   时间:2020-02-09 18:18:53    阅读次数:52
【leetcode】1344. Angle Between Hands of a Clock
题目如下: Given two numbers, hour and minutes. Return the smaller angle (in sexagesimal units) formed between the hour and the minute hand. Example 1: Inp ...
分类:其他好文   时间:2020-02-09 18:15:29    阅读次数:313
[LeetCode] 932. Beautiful Array 漂亮数组
For some fixed , an array is beautiful if it is a permutation of the integers , such that: For every?`i 这道题定义了一种漂亮数组,说的是在任意两个数字之间,不存在一个正好是这两个数之和的一半的数字 ...
分类:编程语言   时间:2020-02-09 16:59:46    阅读次数:83
138. Copy List with Random Pointer
Problem : A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null. Return a ...
分类:其他好文   时间:2020-02-09 11:54:41    阅读次数:76
Airline Routes
Given a map of airline routes, you are supposed to check if a round trip can be planned between any pair of cities. Input Specification: Each input fi ...
分类:其他好文   时间:2020-02-09 00:40:37    阅读次数:99
Tree Traversals - Hard Version
Given the partial results of a binary tree's traversals in in-order, pre-order, and post-order. You are supposed to output the complete results and th ...
分类:其他好文   时间:2020-02-09 00:29:36    阅读次数:71
CSYE 7374: IoT Embedded System
CSYE 7374: IoT Embedded SystemsAssignment 2Due on 2/5/201) Given the following C update function, what does the FSM look like ? Assume push andpop are ...
分类:其他好文   时间:2020-02-08 19:36:44    阅读次数:106
【leetcode】1340. Jump Game V
题目如下: Given an array of integers arr and an integer d. In one step you can jump from index i to index: i + x where: i + x < arr.length and 0 < x <= d. ...
分类:其他好文   时间:2020-02-08 16:04:58    阅读次数:64
24278条   上一页 1 ... 73 74 75 76 77 ... 2428 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!