Skip to content

Brain Cell Overflow

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

Tag: sort

Sorting a slice in Go

1. The slice Package If your Go package is anything newer than 1.21, and the items in the slice are of the cmp.Ordered type, you should definitely use the slice.Sort() function. It only works if you intend to sort it in place and in ascending order, though. So if we want to sort something in… Continue reading Sorting a slice in Go

Published 15 Oct 2026
Categorized as Software Engineering Tagged array, go, slice, sort

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.