---
title: theroyakash algorithms
description: Materials for FAANG and top startup's coding interview preparation and running notes on that.
---

<h1 align="center">
  <br>
  <a href="https://algorithms.theroyakash.com/"><img src="./images/theroyakashalgorithms.001.png" alt="theroyakash algorithms" width="800"></a>
  <br>
  theroyakash algorithms
  <br>
</h1>

<h4 align="center">Materials for FAANG and top startup coding interview and running notes on that. Made by <a href="https://www.theroyakash.com">theroyakash</a>.</h4>

<p align="center">
  <a href="https://algorithms.theroyakash.com/">Getting started</a> •
  <a href="https://algorithms.theroyakash.com/freebies/">Freebies</a> •
  <a href="https://learning.theroyakash.com/">theroyakash Learning Platform</a> •
  <a href="https://github.com/theroyakash/algorithms.theroyakash.com/blob/main/LICENSE">License</a>
</p>

---

<h4 align="center">
  <a href="https://github.com/sponsors/theroyakash">Support this project on GitHub by becoming a sponsor</a>
</h4>
<p align="center">This project is completely free and funded by <a href="https://theroyakash.com">@theroyakash</a> and private sponsors.</p>

## What is this?
This material categorizes coding interview problems into a set of **12 patterns**. Each pattern will be a complete tool - consisting of **data structures**, **algorithms**, and **analysis techniques** - to solve a specific category of problems. The goal is to build an understanding of the _underlying pattern_ so that we can apply that pattern to solve other problems.

**Complete guide and roadmap for SDE I and SDE II algorithm round.**

## Content overview

1. [Sliding Window Pattern](https://algorithms.theroyakash.com/arrays/sliding-window/), more is being added.
2. [Arrays](https://algorithms.theroyakash.com/arrays/array-problems/) and Strings (Coming soon)
3. [Recursion overview](https://algorithms.theroyakash.com/recursion/intro/) and [recursion problems (more) coming soon](https://algorithms.theroyakash.com/recursion/problems/)
4. [Linked lists overview](https://algorithms.theroyakash.com/LinkedLists/stl-usage/) and [problems](https://algorithms.theroyakash.com/LinkedLists/problems/)
5. [Stacks overview](https://algorithms.theroyakash.com/stacks/usage/) and [stack problems](https://algorithms.theroyakash.com/stacks/problems/) and Queues (coming soon)
6. [Binary Search overview](https://algorithms.theroyakash.com/binary-search/intro/) and [Problems (more coming soon)](https://algorithms.theroyakash.com/binary-search/problems/)
7. [Trees overview](https://algorithms.theroyakash.com/trees/implementation/) and [tree problem](/trees/problems/)
8. [Graphs overview](https://algorithms.theroyakash.com/graph/usage/), [graph bfs and dfs](https://algorithms.theroyakash.com/graph/bfs-dfs/) and [Graph Problems](https://algorithms.theroyakash.com/graph/problems/),
9. [Heaps overview](https://algorithms.theroyakash.com/heaps/heap-pq/) and [heap problems](https://algorithms.theroyakash.com/heaps/problems/) and [2 heaps problems](https://algorithms.theroyakash.com/2heaps/problems/).
10. [Greedy algorithms](https://algorithms.theroyakash.com/greedy/problems/)
11. [Dynamic Programming](https://algorithms.theroyakash.com/dp/problems/)
12.  Bit Manipulation (With C/C++) (coming soon)

## Problem Counter
The following table is meant to represent the amount of problems has a full analysis in the website. Maybe incorrectly represented upto 1-2 problems.

| **Problem Concepts**                                                                                 | **Number of problems with detailed solutions** |
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------- |
| [Linked List Problems](https://algorithms.theroyakash.com/LinkedLists/problems/)                     | $15$                                           |
| [Binary Search (Interview Problems)](/binary-search/problems/)                                       | $27$ |
| [Tree Problems](https://algorithms.theroyakash.com/trees/problems/)                                  | $26$                                           |
| [Graph Traversals, BFS, DFS and applications](https://algorithms.theroyakash.com/graph/bfs-dfs/)     | $3$                                            |
| [Graph Standard Problems](https://algorithms.theroyakash.com/graph/problems/)                        | $4$                                            |
| [Graph Interview Problems](https://algorithms.theroyakash.com/graph/problems/)                       | $8$                                            |
| [Stack Problems](https://algorithms.theroyakash.com/stacks/problems/)                                | $12$                                           |
| [Heap Problems](https://algorithms.theroyakash.com/heaps/problems/)                                  | $7$                                            |
| [2 Heap Problems](https://algorithms.theroyakash.com/2heaps/problems/)                               | $2$ problem scheduled to be added              |
| [Array Problems](https://algorithms.theroyakash.com/arrays/array-problems/)                          | $25$            |
| [Sliding Windows](https://algorithms.theroyakash.com/arrays/sliding-window/)                          | $5$            |
| [Array + Sliding window concept Problems](https://algorithms.theroyakash.com/arrays/sliding-window/) | $4$                                            |
| [Recursion Problems](https://algorithms.theroyakash.com/recursion/problems/)                         | $3$, more will be added soon                   |
| [Dynamic Programming](https://algorithms.theroyakash.com/dp/problems/)                                                                                  | $39$                                |
| [Greedy Algorithms](https://algorithms.theroyakash.com/greedy/problems/)                             | 2                                              |
| **Total Number of Problems with Full analysis**                                                      | $180$ problems with **FULL** analysis           |

## Also Coming Soon

Few more freebies coming soon
- Distributed Systems Book (expected 2027 Summer).

## Other Products
See the [freebies](https://algorithms.theroyakash.com/freebies/) page to see more products available for free to use.

## Who am I?
<figure markdown>
  ![Image title](https://images.unsplash.com/photo-1595254771206-5bded301347a?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1074&q=80){ width="700" }
  <figcaption>If this image failed to load contact me at theroyakash[at]outlook.com</figcaption>
</figure>

I go by theroyakash on the internet. I am a computer scientist, a masters student in the department of computer science at **Indian Institute of Technology (IIT) Madras**, with research in *high-performance algorithms*, *data structures*, *distributed systems*, and beyond. I am an upcoming software engineer at **Microsoft**, previously I was a SDE intern at **Amazon** India. See my work searching google for [theroyakash](https://g.co/kgs/Yx9DpE) and on [Github](https://github.com/theroyakash).


## Other links
- Visit my website [here](https://www.theroyakash.com/).
- More about me [here](https://theroyakash.com/about)
- My [Github](https://github.com/theroyakash/),
- [More about me](https://theroyakash.com/about/),
- [Send me an email](mailto:hey@theroyakash.com).