Skip to content

Brain Cell Overflow

An engineering journal that scales (unlike my brain cells).

Tag: first-element-satisfying-predicate

Binary Search

Binary Search I know, the word binary screams binary tree. But no, binary search doesn’t require a tree at all. It’s usually implemented in an array. In Go, we can simply use a slice to do this. Note that a binary search can only be performed on a sorted array. The generic signature [S ~[]E,… Continue reading Binary Search

Published 17 Oct 2026
Categorized as Software Engineering Tagged array, binary search, first-element-satisfying-predicate, generic, go, slice

Recent Posts

  • Time Allocation for System Design Interviews
  • Depth-First Search (DFS)
  • Binary Heap
  • Breadth-First Search (BFS)
  • Binary Search

Categories

  • Renovation & DIY (1)
  • Software Engineering (13)

Archives

  • October 2026 (10)
  • April 2024 (2)
  • February 2021 (2)

Search

Recent Comments

    Recent Posts

    • Time Allocation for System Design Interviews
    • Depth-First Search (DFS)
    • Binary Heap
    • Breadth-First Search (BFS)
    • Binary Search

    Archives

    • October 2026
    • April 2024
    • February 2021

    Categories

    • Renovation & DIY
    • Software Engineering

    Recent Comments

      Meta

      • Log in
      • Entries feed
      • Comments feed
      • WordPress.org
      Brain Cell Overflow
      Proudly powered by WordPress.