码迷,mamicode.com
首页 >  
搜索关键字:given n integers    ( 24278个结果
LeetCode19- Remove Nth Node From End of List-Medium
删除链表中倒数第n个结点 题目:LeetCode19 Given a linked list, remove the n-th node from the end of list and return its head. Example: Given linked list: 1->2->3->4- ...
分类:其他好文   时间:2020-05-29 09:26:32    阅读次数:50
【leetcode】1413. Minimum Value to Get Positive Step by Step Sum
题目如下: Given an array of integers nums, you start with an initial positive value startValue. In each iteration, you calculate the step by step sum of s ...
分类:其他好文   时间:2020-05-29 09:26:12    阅读次数:59
48.Rotate Image
给定一个二维方阵,求,将此方阵顺时针旋转90度。就地交换,不引入额外的存储消耗。 Given input matrix =[ [ 5, 1, 9,11], [ 2, 4, 8,10], [13, 3, 6, 7], [15,14,12,16]], rotate the input matrix in ...
分类:其他好文   时间:2020-05-28 13:04:14    阅读次数:56
Exercise 3: Integer Right Triangles
Given a perimeter of 60, we can find two right triangles with integral length sides: [(10, 24, 26), (15, 20, 25)]. Complete the following function, wh ...
分类:其他好文   时间:2020-05-28 00:59:06    阅读次数:86
974. Subarray Sums Divisible by K. 前缀和、同余定理
Given an array A of integers, return the number of (contiguous, non-empty) subarrays that have a sum divisible by K. Example 1: Input: A = [4,5,0,-2,- ...
分类:其他好文   时间:2020-05-28 00:53:15    阅读次数:54
377. Combination Sum IV
package LeetCode_377 /** * 377. Combination Sum IV * https://leetcode.com/problems/combination-sum-iv/description/ * * Given an integer array with all ...
分类:其他好文   时间:2020-05-27 18:53:27    阅读次数:60
[LeetCode 621] Task Scheduler
Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks. Tasks coul ...
分类:其他好文   时间:2020-05-27 09:16:52    阅读次数:74
496. Next Greater Element I
package LeetCode_496 /** * 496. Next Greater Element I * https://leetcode.com/problems/next-greater-element-i/description/ * * You are given two array ...
分类:其他好文   时间:2020-05-26 22:09:23    阅读次数:112
A Simple Problem
For a given positive integer n, please find the smallest positive integer x that we can find an integer y such that y^2 = n +x^2. Input The first line ...
分类:其他好文   时间:2020-05-25 19:26:17    阅读次数:61
小学奥数题——A Simple Problem
看一下题目大意: For a given positive integer n, please find the smallest positive integer x that we can find an integer y such that y^2 = n +x^2.。 自己翻译一下,不难 ...
分类:其他好文   时间:2020-05-25 12:06:37    阅读次数:75
24278条   上一页 1 ... 36 37 38 39 40 ... 2428 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!