Learn how to sort a list with a custom type when you want to use a fallback search criteria. Eg sort by last name, then first name if those match.
This article demonstrates how to code a bubble sort that sorts a list of strings in a case insensitive manner using Go.
This tutorial demonstrates in detail how to adapt a bubble sort implementation written in Go to sort a list of numbers in reverse (non-increasing) order, rather than the default non-decreasing order. It is a useful trick to learn as it will help you custom sort other data types in the future.
Learn to code the bubble sort algorithm in Go by walking through a coding example and then working on several practice problems to reinforce the knowledge. If you have ever wanted to learn algorithms, this series is a great place to start.
This tutorial covers bubble sort, explaining how the sorting algorithm works with visual examples. It also covers ways to optimize the algorithm.
Jon Calhoun is a full stack web developer who teaches about Go, web development, algorithms, and anything programming. If you haven't already, you should totally check out his Go courses.
Previously, Jon worked at several statups including co-founding EasyPost, a shipping API used by several fortune 500 companies. Prior to that Jon worked at Google, competed at world finals in programming competitions, and has been programming since he was a child.
©2024 Jonathan Calhoun. All rights reserved.