Skip to content

Instantly share code, notes, and snippets.

View Souvikns's full-sized avatar
🎯
Focusing

souvik Souvikns

🎯
Focusing
View GitHub Profile
@Souvikns
Souvikns / CountingSort.java
Created December 16, 2018 15:17 — forked from anubhavshrimal/CountingSort.java
performs sorting of an integer array using counting sort algorithm in O(n) time complexity
import java.util.Scanner;
public class CountingSort
{
//method to get the maximum element from the array
private int getMax(int a[],int size)
{
int max=a[0];
for (int i = 1; i < size; i++)
{