ArcOmotola / algo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Algorithm Exercises

A collection of exercises to help improve your understanding of algorithms and data structures.

Languages

  • Python
  • JavaScript
  • Go
  • Java
  • Python

Data Structures

  • String - String is a sequence of characters. and it is immutable.
  • Array - Array maintains a collection of elements in a contiguous memory location. It is a dynamic data structure that can grow and shrink as needed.
  • Linked list - Linked list is a linear data structure. It is a collection of nodes which are connected by a sequence of pointers. Each node contains a data field and a reference to the next node. The last node points to null.
  • Stack - Stack is a linear data structure. It is a collection of elements which can be added or removed only at one end. The last element is the first element to be removed.
  • Queue - Queue is a linear data structure. It is a collection of elements which can be added or removed only at one end. The first element is the first element to be removed.
  • Binary tree - Binary tree is a tree where each node has at most two children. The left child is always less than the parent and the right child is always greater than the parent.
  • Binary search tree - Binary search tree is a binary tree where the value of each node is greater than or equal to the value of the node's left child and less than or equal to the value of the node's right child.
  • Heap - Heap is a data structure that is similar to a binary tree, except that each node is either a leaf or has two children. The root of the heap is the smallest value in the tree.
  • Graph - Graph is a data structure that is used to represent a network of nodes. Each node is connected to a set of other nodes, which are called its neighbors. Graphs are used to represent networks of computers, social networks, and other networks.
  • Trie - Trie is a data structure that is used to store strings. It is similar to a binary search tree, except that it is optimized for string searches.
  • Hash table - Hash table is a data structure that is used to store data. It is similar to an

Exercises

  1. Two Sum
  2. Reverse Integer
  3. Palindrome Number

Algorithms Templates

Contributing

  • This project is work in progress If you would like to contribute, please do get in touch.
  • Read contributing.md for guidelines
  • Any ideas? Create an issue

Feedback

  • Add issues/submit PRs here

MIT license

About