← Code LabNode.js0/50 solved · 0%
Web3 · hard

47. Binary Search Blocks

Find a target timestamp in a sorted block list.

Write `search(blocks, target)` returning the block index.
Required in your answer: Math.floorwhile (l <= r)