This file contains hidden or 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> | |
| // general recursion | |
| int factorial(int n) | |
| { | |
| if(n==0) | |
| return 1; | |
| else | |
| return n * factorial(n-1); | |
| } |
This file contains hidden or 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
| /* | |
| Quick sort example 3 | |
| */ | |
| #include <stdio.h> | |
| //SETTING QUICK SORT, PIVOT POSITION | |
| #define PIVOT_LEFT | |
| //#define PIVOT_RIGHT |
This file contains hidden or 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> | |
| #define MAX 10 | |
| int size=0; | |
| int head=0; // not used in stack | |
| int tail=0; | |
| int queue[MAX]; | |
| int stack[MAX]; |
This file contains hidden or 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> | |
| #include <stdlib.h> | |
| typedef struct ListElmt_ { | |
| void * data; | |
| struct ListElmt_ *next; | |
| }ListElmt; | |
| typedef struct List_ { |
This file contains hidden or 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
| // blogspot test 용 입니다. | |
| #include<stdio.h> | |
| int main() | |
| { | |
| printf(" blogspot test 용 입니다. \n"); | |
| return 0; | |
| } |
This file contains hidden or 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> | |
| //Jeonghun Lee, this is second test code. | |
| int main() | |
| { | |
| printf ("Test Github1 , gist test "); | |
| return 0; | |
| } |
This file contains hidden or 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> | |
| //Jeonghun Lee, this is first test code. | |
| int main() | |
| { | |
| printf ("Test Github1 , gist test "); | |
| return 0; | |
| } |
NewerOlder