HackerTrans
トップ新着トレンドコメント過去質問紹介求人

asdguinui

no profile record

コメント

asdguinui
·3 年前·議論
In fairness to the scene, this was the code in question:

https://stackoverflow.com/questions/65753731/why-searching-a...

Hardly clean, I think you'd agree.

In any case, you shouldn't use explicit iteration to solve this problem without a good reason. Every language should have both linear and binary search as part of its standard library.