This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int[] sort(int[] a, int num) { | |
for(int z = a.length -1; z > 1; z--) { | |
if(a[z] == num) { | |
int temp = a[0]; | |
a[0] = num; | |
a[z] = temp; | |
} | |
if(a[z] < a[z - 1]) { | |
int temp = a[z]; | |
a[z] = a[z-1]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
/* | |
Linked list implementation of Stack in C | |
I'm learning C so it's not that good! | |
Feel free to leave tips! | |
*/ | |