Counting Sort in Java - Example
Skip to content
Search for easy dinners, fashion, etc.
When autocomplete results are available use up and down arrows to review and enter to select. Touch device users, explore by touch or with swipe gestures.
a table with numbers on it that are written in the form of an x and y
java67.com

Counting Sort in Java - Example

The Counting sort algorithm, like Radix sort and Bucket sort, is an integer-based algorithm (i.e. the values of the input array are assumed to be integers), non-comparison, and linear sorting algorithm. Hence counting sort is among the fastest sorting algorithms around, in theory. It is also one of the few linear sorting algorithms or O(n) sorting algorithms. It's quite common in Java interviews nowadays to ask, whether do you know any O(n) sorting algorithm or not. If you face this question...
javarevisited
Javin

Comments

More about this Pin

Board containing this Pin

Selected board cover image
computer science :)
2.2k Pins
1w

Related interests

Sorting Algorithm Tutorial
Understanding Sorting Algorithms
Understanding Java Programming Basics
Data Structures And Algorithms In Java
Java Programming Language Infographic
Javascript Syntax Explanation
Counting Sort Algorithm Example
Counting Sort Step-by-step
How To Implement Counting Sort