/Data-Structures-Algorithms

My implementations of data structures (think Graphs/Trees, Stack, Queue) algorithms, and programming problems (from Project Euler to Daily Coding Problem)

Primary LanguageJava

Data-Structures-Algorithms

This repository contains my implementations of popular data structures and algorithms. Additionally, I store the solutions (and problem statements) of coding problems I've encountered. These problems vary by difficulty, but they're typically from these sources:

  1. Daily Coding Problem
  2. Project Euler
  3. Hackerrank
  4. GeeksForGeeks
  5. Leetcode

Table of contents:

Data Structure Implementations:

  1. Stack Data Structure
  2. Queue Data Structure

Algorithm Implementations:

  1. Selection Sorting Algorithm
  2. Fibonacci Sequence

Programming Problems:

  1. Does Sum (of pairs) Exist in List?
  2. Multiply other elements, except element i, and place at position i
  3. Serialize/Deserialize Binary Tree
  • The deserialization was a really tough one for me, it took a couple of days. I had some trouble because of the way I decided to format nodes, like so: (NodeValue, (LeftNode), (RightNode)) It felt natural to solve it with a recursive algorithm, but it still had a few hoops to jump through.