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 | |
| { | |
| int data; | |
| struct Node *right; | |
| struct Node *left; | |
| int count; | |
| } Node; |
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 <FiniteStateMachine.h> | |
| #include <Button.h> | |
| int input1[4] = {10, 13, 12, 11}; | |
| int input2[4] = {6, 9, 8, 7}; | |
| int input3[4] = {2, 5, 4, 3}; | |
| int input4[4] = {17, 14, 15, 16}; | |
| byte BCD[16][4] = { | |
| {0, 0, 0, 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> | |
| #include <stdlib.h> | |
| typedef struct StackNode | |
| { | |
| void *data; | |
| struct StackNode *next; | |
| } StackNode; | |
| typedef struct Stack |
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 <conio.h> | |
| #include <stdio.h> | |
| #include <math.h> | |
| void swap(int *a, int *b); | |
| void print(int *arr, int lengthArr); | |
| int main() | |
| { |
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> | |
| #include "OrderedPairLib.c" | |
| typedef struct Set | |
| { | |
| LinkedList *orderedPairList; | |
| } Set; | |
| OrderedPair *getOrderedPair(Set *optr, int index) |
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> | |
| void quickSort(int *arr, int startArr, int endArr); | |
| int partionByPivot(int *arr, int startArr, int endArr); | |
| void printArray(int *arr, int lengthArr); | |
| void swap(int *a, int *b); | |
| void main() | |
| { |
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 QueueNode | |
| { | |
| void *data; | |
| struct QueueNode *next; | |
| } QueueNode; | |
| typedef struct Queue |
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 ListNode{ | |
| void *data; | |
| struct ListNode *next; | |
| } ListNode; | |
| typedef struct LinkedList { |
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 | |
| { | |
| int data; | |
| struct Node *next; | |
| } Node; | |
| typedef struct Queue |
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> | |
| void mergeSort(int *arr, int lengthArr); | |
| void merge(int *arr, int lengthArr, int *subA, int lengthSubA, int *subB, int lengthSubB); | |
| void printArray(int *arr, int lengthArr); | |
| void main() | |
| { | |
| int arr[15] = {11, 68, 2, 4, 5, 7, 8, 9, 1, 3, 4, 5, 6, 8, 10}; | |
| int lengthArr = (int)sizeof(arr) / sizeof(arr[0]); |
NewerOlder