Data Structures and Algorithms

State University of Zanzibar (SUZA)

BSc Computer Science - Undergraduate

📚

Lectures

🔬

Practical Lab Sessions

LabTopicExercisesFormat
Lab 1 Arrays & Algorithm Analysis 22 exercises + LeetCode (Two Sum, Kadane's, etc.) TXT
Lab 2 Linked Lists 24 exercises + LeetCode (Reverse LL, Cycle, Palindrome, etc.) TXT
Lab 3 Stacks & Queues 21 exercises + LeetCode (Valid Parentheses, Min Stack, etc.) TXT
Lab 4 Trees & Binary Search Trees 26 exercises + LeetCode (Max Depth, Validate BST, LCA, etc.) TXT
Lab 5 Sorting Algorithms 21 exercises + LeetCode (Sort Colors, Kth Largest, etc.) TXT
Lab 6 Searching & Hashing 24 exercises + LeetCode (Binary Search, Find Peak, etc.) TXT
💡

Code Examples

✏️

Exercises

📝

Homeworks

📋

Assignments

📄

Tests & Exams

📖

Course Topics

  • ▸ Arrays and Strings
  • ▸ Linked Lists
  • ▸ Stacks and Queues
  • ▸ Trees and Binary Search Trees
  • ▸ Heaps and Priority Queues
  • ▸ Hash Tables
  • ▸ Graphs and Graph Algorithms
  • ▸ Sorting Algorithms
  • ▸ Searching Algorithms
  • ▸ Recursion and Dynamic Programming
  • ▸ Algorithm Analysis (Big O)
💻

Getting Started

Compile and Run C Programs

gcc dsacode/binary_search_tree.c -o bst
./bst

gcc dsacode/sorting_algorithms.c -o sort
./sort

Practice Platforms

LeetCode | HackerRank - Data Structures | VisuAlgo - Visualize Algorithms