討論串[討論] 給排序過的Array 用最少運算資源找值
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 7→)留言9則,0人參與, 1年前最新作者Kuba4ma時間1年前 (2022/05/28 12:05), 1年前編輯資訊
0
0
0
內容預覽:
各位大神好. 本魯最近在準備某間IC廠的面試. 在網路上找到這題考古題. 題目如下. ```. 給一個sorted array(ex: a[5]={1,1,1,0,0}),請找出第一個0的位置,請使用能降低CPU跟memory負擔的用量. ```. 我能想到的就只有用for loop掃過一遍而已.
(還有78個字)

推噓1(1推 0噓 9→)留言10則,0人參與, 1年前最新作者OnlyRD (里巷人)時間1年前 (2022/06/08 11:50), 1年前編輯資訊
0
0
0
內容預覽:
#include <iostream>. #include <tuple>. #include <utility>. template<int E, int H, int... Rest>. struct find_helper {. static constexpr auto rest() ->
(還有1673個字)
首頁
上一頁
1
下一頁
尾頁