一亩三分地 标签 标签 数组 相关帖子

标签:
数组 (#数组)

65个主题 | 452个回复 | 最后更新: 2023-12-1 14:43

相关帖子

列表无图
版块 回复/查看 最后发表
亚麻 NG oa1

一共两个题findMinHealth, 一个游戏,输入一个数列代表每关要掉的血🩸,还有一个值表示一个只能用一次的可以挡最高伤害的盾,要求过完全部关后还要留一滴血。求游 ...

海外面经 12 14575 地里匿名用户 2022-8-16 02:13
CodeSignal 一題求解

題目 packBlock給一整數列,第 i 個數代表第 i 個block的寬度 每個block的維度都是 1 x 寬度給一整數代表可用的row的數量,每一row無限長,可以容納 1 x 無限長的物 ...

刷题 6 3783 magicsets 2021-9-1 21:03
请教一道经典题

请教大家一道经典题。sorted array after rotation. return the starting index for the minimum element. [1,1,1,1,1,1] -> 0[1,1,1,2,1,1] -> 4谢谢各位大佬。

刷题 17 1703 twtypsj 2021-3-24 03:54
请教一道算法题

昨天面了一道题,感觉自己可能理解有问题,或者是没有问清楚,到现在也没有想清楚该怎么实现,请教各位大佬。给你一个固定大小的memory buffer,比如4MB,让实现2个动 ...

刷题 15 2015 1m3fdstring 2021-3-23 00:06
n 個有序組中的 n 個最小數

題:給n 個有序數組,每個數組有n個數,一共n^2個數,輸出其中n個最小的數例:S1 = [0,4,19,20] S2 =[1,45,67,99] S3= [2,3,17,19] S4=[11,21,31,41] 輸出 S = [0,1,2,3 ...

刷题 5 891 twtypsj 2021-2-27 14:08
有點像Leetcode 68. Text Justification

問題There are N items to be printed on receipt, the i-th item has Item characters. A item must be printed on a single line, and can't change the item printing ...

刷题 1 1644 不知道小帅 2021-2-27 05:18
一道数组题,如何降到小于n^2的复杂度以下

本人小白,刷这道题时只想到暴力法,请问有没有什么好办法能够降低复杂度呢?先谢谢了!

attach_img
刷题 8 1503 songshu198907 2021-1-29 12:20
面试中翻车的一道题 求教

QA岗的onsite,考的大部分题都是easy难度 比较容易有一轮和面试官沟通不太顺畅 题也没完全写出来,题目如下:给定一个连续整数list,如[1, 5000],删除其中所有含有数 ...

刷题 16 2682 hsiang9431 2020-12-25 06:04
287. Find the Duplicate Number 怎么证明环的

如题,怎么可以证明他有环呢感觉大家可以用这个解法怎么去理解呢:

刷题 2 840 usr_opta 2020-10-10 15:03
color grid求解!

这是一道oa题,弱弱问一句这题应该怎么做。。目前没有什么思路,做出来加米!

attach_img
刷题 7 2300 ZARATITE 2020-8-28 04:08
请问LC有没有类似的题?

今天在解题时想到这样的题目: 就像是 House robbery ( with k distance 版本), Select top 3 numbers from an unsorted list with min k distance, return maxSum or re ...

刷题 2 861 diarl 2020-8-27 16:02
find magic number 这道题值得警惕

题目:find magic number (1) find a magic number that A = i in a sorted array (monotonic increasing order), return the smallest magic number (index). return -1 ...

刷题 13 2733 xxddxxdd 2020-7-13 10:38
回文序列刁钻脑经急转弯题

今天电面,一开始问的是传统的回文序列题,解出来以后,面试官话锋一变,问:“假设你开一个专门帮用户解答‘是否是回文序列’的网站。结果你做得太好了引来很多同行攻击 ...

刷题 7 1474 umbg 2020-6-4 12:43
求助一道array的题,lc没找到一样的

Given an array of numbers of size N (a large number, say N=1000000), find out the largest product of n-number of adjacent numbers (n

刷题 3 1291 queensberry 2020-3-10 05:57
给一个array,找出里面出现奇数次的数字,要求no extra space

如题,求指点,这怎么做?

刷题 5 1542 匿名账號 2020-2-5 07:12
最近面了Oracle,有一题始终想不明白,希望各位大佬帮忙分析一下

题目如下:Given an array ,divide this array into k possible subsets and find the maximum sum of these subsets ,and from these sum find the minimum among all? ...

刷题 48 9742 hjy 2020-1-23 09:45
悬赏 请教各位大神,这道题到底咋做啊....

在准备oa,看到这道题(图片已附件)...比较懵。请教各位~感谢!我大米少的可怜。见谅

- [!reward_solved!] attach_img
刷题 4 1581 anhpp 2019-12-6 09:04
leetcode 169 测试数据引发的 诡异现象

有Bug输入数据: [2, 1, 3, 2, 1, 2, 3, 2]为什么输出是3 不应该是2吗?https://leetcode.com/problems/majority-element/description/https://leetcode-cn.co ...

刷题 3 1090 yanjinbin 2019-11-24 19:26
一道计算物体周长题

做OA的时候遇到了一道题给定一个二维数组, 每个物体可以从八个方向连接,计算所有形成的物体的周长和。case1input:0 0 0 0 01 0 0 0 01 1 0 0 00 0 0 ...

刷题 7 2449 lyronly 2019-11-23 10:55
indices of second larger number on the right

Given an array of integers, for each of them, find the index of the second number to its right that's larger and return the resulting array of indices. If there ...

刷题 1 977 mint0715 2019-11-15 07:32
1234下一页
>
返回顶部