討論串[討論] 給排序過的Array 用最少運算資源找值
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
各位大神好. 本魯最近在準備某間IC廠的面試. 在網路上找到這題考古題. 題目如下. ```. 給一個sorted array(ex: a[5]={1,1,1,0,0}),請找出第一個0的位置,請使用能降低CPU跟memory負擔的用量. ```. 我能想到的就只有用for loop掃過一遍而已.
(還有78個字)
內容預覽:
#include <iostream>. #include <tuple>. #include <utility>. template<int E, int H, int... Rest>. struct find_helper {. static constexpr auto rest() ->
(還有1673個字)
首頁
上一頁
1
下一頁
尾頁