Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tashmahalic
· 4y ago · 0 comments
Without loops or general recursion, how would you implement binary search of a list? How would you implement list sorting algorithms like merge sort, bubble sort, or quicksort?
Comments
[–]
hyperswine
4y ago
I guess you could use arr.for_each() or arr.map()