The goal here is that each file demostrates a single concept in for quick reference.
- model_from_scratch_mnist.ipynb: A simple ML model (almost) from scratch
- generating_pseudorandom_numbers.py: pseudo-random number generator
- generating_primes.py: Generating prime numbers
- gcd.py: Calculating the greatest common divisor
- square_root.py: Calculate square root of a number
- base_conversion.py: Convert a number from on base to another
- cosine.py: Calculate cosine using the taylor series
- factorials.py: Check if a number is a factorial
- simple_recursive_descent_parser.py: A simple recursive descent parser
- bit_manipulation.py: Bit manipulation
- heapsort.py: Heapsort
- kth_largest.py: Find kth largest element using binary search tree
- binary_search_tree.py: Binary Search Tree
- binary_search.py: Binary Search
- quicksort.py: Quicksort
- binary_tree_traversal.py: Binary tree traversal
- hash_table.py: Hash table with separate chaining
- nth_fibonacci.py: Find the nth fibonacci number
- fibonacci_sequence.py: Different approaches to generating the fibonacci sequence
- detect_linkedlist_cycle.org: Detect cycle in linked list
- reverse_linkedlist.py: Initialize and reverse a linked list
These are code samples from other sources that I include here for reference