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 <iostream> | |
using namespace std; | |
int f(int n) { | |
if (n < 0) return 0; | |
if (n < 2) return n; | |
return f(n - 1) + f(n - 2); | |
} | |
int main(void) { |
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
//avl트리 책에 있는 소스 수정 | |
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct avl_node { | |
struct avl_node *left_child, *right_child; /* Subtrees. */ | |
int data; /* Pointer to data. */ | |
}avl_node; |
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 <iostream> | |
using namespace std; | |
int main(void) { | |
cout << "Hello, World!" << endl; | |
return 0; | |
} |
NewerOlder