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 node_type { | |
| int id; | |
| struct node_type *left, | |
| *right; | |
| } NodeT; |
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 _TREE_NODE { | |
| int key; | |
| struct _TREE_NODE *left; | |
| struct _TREE_NODE *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 SIZE 100 | |
| int n, k, | |
| sol[ SIZE ]; | |
| // p = 2 | |
| void comb(int p) { |
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
| /* | |
| n = 3 | |
| 3! = 1 * 2 * 3 = 6 permutari | |
| Stiva 3 elemente | |
| 1 2 3 -prima solutie | |
| 1 3 2 -a doua solutie |
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
| /* | |
| n = 3 | |
| 3! = 1 * 2 * 3 = 6 permutari | |
| Stiva 3 elemente | |
| 1 2 3 -prima solutie | |
| 1 3 2 -a doua solutie |
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 <iostream> | |
| #include <fstream> | |
| #include <string> | |
| using namespace std; | |
| enum class TipEcran { | |
| LED, OLED | |
| }; |
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 <iostream> | |
| #include <fstream> | |
| #include <string> | |
| using namespace std; | |
| int main(int argc, char const *argv[]) { | |
| int varsta = 20; | |
| float inaltime = 1.82f; |
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 <iostream> | |
| using namespace std; | |
| double imparte(double a, double b) { | |
| if(b == 0) { | |
| throw runtime_error("Nu se poate imparti la zero!"); //aruncam eroarea | |
| } |
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 node_type { | |
| int id; | |
| struct node_type *left, | |
| *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> | |
| #include <stdlib.h> | |
| typedef struct node_type { | |
| int id; | |
| struct node_type *left, | |
| *right; |
NewerOlder