0
Depending on the frequency sort the array
I know the code is not optimised nor it works want to know a way to get the output
input = 3,5,3,5,3,4
output=3,3,3,5,5,4
#include<stdio.h>
#include<stdlib.h>
void sort(int arr[],int n);
int distinct(int arr[],int n);
int main()
{
int i=0;
int a...