排序
Counting Sort in Java
Counting Sort in Java,Counting Sort is an integer sorting algorithm. Counting Sort are unlike other sorting algorithms in that it makes certain assumptions about the data. It count...
Fibonacci: Recursion vs Iteration
Fibonacci: Recursion vs Iteration, A common whiteboard problem that I have been asked to solve couple times, has been to 'write a function to generate the nth Fibonacci number star...
Algorithms: Gray Binary Code – A different way of ordering numbers
Algorithms: Gray Binary Code - A different way of ordering numbers,Gray binary code is a way of expressing binary numbers such that consecutive numbers differ in exactly 1 digit. F...
Learning Algorithms with JS, Python and Java 4: MaxChar
Learning Algorithms with JS, Python and Java 4: MaxChar,This is the fourth article of my attempts to follow Stephen Grider's Udemy course in three different languages. First I quot...
Learning Algorithms with JS, Python and Java 1: String Reversal
Learning Algorithms with JS, Python and Java 1: String Reversal,When I study natural languages, I've always enjoyed comparing them. It was intriguing to know, for example, that the...
Dual Pivot Quick Sort: Java’s default sorting algorithm for primitive data types.
Dual Pivot Quick Sort: Java’s default sorting algorithm for primitive data types.,What happens when we do Arrays.sort() in Java? which sorting algorithm does Java use in the backg...