C program to create following shape


Continue reading …

Advertisements

Implement radix sort in c

#include <cstdio> // printf, puts
#include <cstdlib> // srand, rand
#include <ctime> // time, clock, time_t
#include <cstring> // memset
// every programmer should know memset ;)
#define MAX 6000000 // array size
#define RANGE 1000000 // range
Continue reading ...