1)一百個從1到100的數組中,混進了一個數(也是從1到100),求算法找出 重複的數,並給出最有效的O() complexity, both time complexity and space complexity。
test case:
input (101個數字):
out put: True
out put: False
1)一百個從1到100的數組中,混進了一個數(也是從1到100),求算法找出 重複的數,並給出最有效的O() complexity, both time complexity and space complexity。
test case:
input (101個數字):
•
兄貴,你永遠正確
-avw-
♀
(0 bytes)
()
04/02/2023 postreply
14:54:09
•
這是拿來考家長的?連usaco bronze 水平都沒到,也太小看這裏的家長了。。。。
-beibei_2018-
♀
(0 bytes)
()
04/02/2023 postreply
14:57:51
•
USACO 銅級是幾個小時編程題。那兩個小題是麵試題,一、兩分鍾急智題。僅僅過銅級的USACO,絕大部分肯定做不出來
-兄貴-
♂
(0 bytes)
()
04/02/2023 postreply
15:18:13
•
必須是 O(1)解,才算過
-兄貴-
♂
(0 bytes)
()
04/02/2023 postreply
15:19:29
•
你有多久沒看現在的bronze 題了?包括的算法比這兩個高級太多了。就這倆題,我娃小學的時候剛學完C++就能做
-beibei_2018-
♀
(179 bytes)
()
04/02/2023 postreply
15:28:32
•
你和你娃厲害。但麵試官說,麵試的大學生能做出的非常少。絕大多數都是用 loop 解決,不合要求
-兄貴-
♂
(0 bytes)
()
04/02/2023 postreply
15:36:32
•
好奇啥麵試啊?我司電麵都不會用這麽簡單的題。bronze 雖然對big O要求不高, 但problem solving
-beibei_2018-
♀
(301 bytes)
()
04/02/2023 postreply
16:07:34
•
USACO 銅級對 complexity 基本沒有要求。而這題是對 complexity 嚴格限製的
-兄貴-
♂
(0 bytes)
()
04/02/2023 postreply
15:38:28