Course and practice code from my Computer Science studies at PUC Goiás, in C, C++ and Java. Comments and identifiers are in Portuguese.
I was a teaching assistant for Algorithms (Aug to Dec 2024, C99, first-year students) and Data Structures I (Aug to Dec 2025, C/C++). The ED1 folder covers the Data Structures I topics.
| Path | Contents |
|---|---|
algorithms/grafos.c |
Graphs in C. Reads an adjacency matrix, incidence matrix or adjacency list, computes vertex degrees, checks if the graph is simple, connected, bipartite or a wheel, searches for cliques and builds an Eulerian cycle. |
algorithms/AVLTree.cpp |
AVL tree in C++ with single and double rotations, insert, remove and traversals. |
algorithms/bbtree.cpp |
Binary search tree in C++ with insert, remove, search, height, node and leaf count, mirroring, recursive and iterative traversals and level order. |
algorithms/sorting/ |
Insertion sort and merge sort in C++, other sorts in sorts.c. |
ED1/c/ |
Linked list with dynamic allocation, circular list, stack and queue headers, sparse matrix and a solitaire card game. |
ED1/java/ |
ArrayList and linked list. |
competitive_programming/ |
Solutions for CSES, LeetCode, Codeforces and beecrowd. |
cd algorithms
gcc -std=c99 -Wall -o grafos grafos.c && ./grafos # reads entrada.txt
g++ -std=c++17 -Wall -o avl AVLTree.cpp && ./avl
g++ -std=c++17 -Wall -o bst bbtree.cpp && ./bst