Chapter 1
Binary search
divide array into sub parts until target is found
function binarySearch(nums, target) {
let low = 0
Chapter 1
Binary search
divide array into sub parts until target is found
function binarySearch(nums, target) {
let low = 0
import React, { ReactNode } from "react"; | |
type UlProps = { | |
children: ReactNode; | |
className?: string; | |
listStyle?: string; | |
}; | |
type LiProps = { | |
children: ReactNode; |