• Stars
    star
    334
  • Rank 121,971 (Top 3 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created about 3 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A curated list of data structures and algorithms problems along with the solution in JavaScript to crack engineering interviews

DSA Interview Challenges

A curated list of data structures and algorithms problems
along with the solution in JavaScript to crack engineering interviews

Go through Usage Guide before you start solving
To download all the challenges as pdf, click here


Newbie

  1. Running Sum of 1d Array
  2. Fibonacci Number
  3. Shuffle the Array
  4. Search Insert Position
  5. Pascal's Triangle
  6. Reverse String
  7. Matrix Diagonal Sum
  8. Reverse Integer
  9. Jewels and Stones
  10. Kids With the Greatest Number of Candies
  11. Maximum Product of Two Elements in an Array
  12. Merge Sorted Array

Warm Up

  1. Missing Number
  2. Majority Element
  3. Single Number
  4. Rotate Array
  5. Two Sum
  6. Move Zeroes
  7. Squares of a Sorted Array
  8. Maximum Subarray
  9. Search in Rotated Sorted Array
  10. Product of Array Except Self
  11. How Many Numbers Are Smaller Than the Current Number
  12. Best Time to Buy and Sell Stock

Array 1D

  1. Container With Most Water
  2. House Robber
  3. Sort Colors
  4. Subsets
  5. Combination Sum
  6. 3 Sum
  7. Find the Duplicate Number
  8. Coin Change
  9. Jump Game
  10. Kth Largest Element in an Array
  11. Longest Increasing Subsequence
  12. Maximum Product Subarray

Array 2D

  1. Search a 2D Matrix
  2. Spiral Matrix
  3. Flipping an Image
  4. Unique Paths
  5. Word Search
  6. Set Matrix Zeroes
  7. Number of Islands
  8. Minimum Path Sum
  9. Path With Minimum Effort
  10. Course Schedule
  11. Merge Intervals
  12. Non-overlapping Intervals

Strings

  1. Ransom Note
  2. Valid Parentheses
  3. Check if the Sentence Is Pangram
  4. Valid Anagram
  5. Longest Common Prefix
  6. Reverse Only Letters
  7. First Unique Character in a String
  8. Palindromic Substrings
  9. Longest Substring Without Repeating Characters
  10. Longest Palindromic Substring
  11. Group Anagrams
  12. Generate Parentheses

Linked List

  1. Middle of the Linked List
  2. Merge Two Sorted Lists
  3. Remove Duplicates from Sorted List
  4. Linked List Cycle
  5. Intersection of Two Linked Lists
  6. Reverse Linked List
  7. Add Two Numbers
  8. Palindrome Linked List
  9. Swapping Nodes in a Linked List
  10. Odd Even Linked List
  11. Reorder List
  12. Remove Nth Node From End of List

Binary Trees

  1. Path Sum
  2. Invert Binary Tree
  3. Cousins in Binary Tree
  4. Diameter of Binary Tree
  5. Binary Tree Paths
  6. Average of Levels in Binary Tree
  7. Maximum Depth of Binary Tree
  8. Merge Two Binary Trees
  9. Same Tree
  10. Sum of Left Leaves
  11. Leaf-Similar Trees
  12. Symmetric Tree

Binary Search Trees

  1. Range Sum of BST
  2. Search in a Binary Search Tree
  3. Minimum Absolute Difference in BST
  4. Minimum Distance Between BST Nodes
  5. Lowest Common Ancestor of a Binary Search Tree
  6. Validate Binary Search Tree

Stargazers

Stargazers repo roster for @sadanandpai/dsa-interview-challenges

Forkers

Forkers repo roster for @sadanandpai/dsa-interview-challenges

Contributing Guide

If you want to contribute, improve or suggest changes to this repo, then check out the Contributing Guide

License

This repository is MIT licensed. Read more

More Repositories

1

javascript-code-challenges

A collection of JavaScript modern interview code challenges for beginners to experts
MDX
4,093
star
2

frontend-learning-kit

Frontend tech guide and curated collection of frontend materials
4,065
star
3

frontend-mini-challenges

Collection of frontend challenges for learning and interviews
JavaScript
1,810
star
4

resume-builder

Build a standard and professional single page resume
TypeScript
894
star
5

algo-visualizers

Algorithms Visualizers
TypeScript
649
star
6

git-guide

Practical guide to everyday Git commands
558
star
7

shortest-path-finder

Shortest Path Finder visualizer using Breadth First Search algorithm
JavaScript
202
star
8

sudoku-solver

Sudoku Solver
JavaScript
61
star
9

dsa-in-js

Solutions to wide range of programs on Data Structures and Algorithms
JavaScript
20
star
10

sadanandpai

19
star
11

rxjs-challenges

Functional Reactive Programming challenges solved using RxJS
TypeScript
13
star
12

KanbanBoard

Kanban Board
JavaScript
12
star
13

react-components

Collection of small and useful components
JavaScript
11
star
14

typescript-for-humans

A kickstarter guide to writing TypeScript
10
star
15

MemoryGame

Memory game
JavaScript
10
star
16

funder

A tinder styled joke application
JavaScript
9
star
17

boggleboard

Boggle Board web application using VueJS
Vue
8
star
18

react-state-management

Different ways of managing state in React JS
JavaScript
8
star
19

15puzzle

15 Puzzle is a game to sort and solve the grid
JavaScript
6
star
20

weather-app

Weather app in Angular for practice
TypeScript
4
star
21

wheelOfColors

A fun game: Wheel of colors
JavaScript
4
star
22

github-issues

Github Open Issues
JavaScript
4
star
23

generators-in-action

Working of multiple generators with the help of queue data structure where the one generator yields to trigger the next one in chain till the completion of all
JavaScript
4
star
24

vite-react-template

Vitejs based React TypeScript template
TypeScript
3
star
25

tradingmasters

Trading Masters
JavaScript
2
star
26

marinesystem-angular

Marine system web application
TypeScript
2
star
27

covidindianstatestatus

Indian State-wise Live Status
HTML
2
star
28

algo-visualizer

Algo visualizer for island problem
TypeScript
2
star
29

mediamonks

Welcome page of Media Monks
HTML
2
star
30

projectportal

Project portal
HTML
2
star
31

paichat

Chat App
HTML
2
star
32

jewellery_receipt

JavaScript
1
star
33

bingo

JavaScript
1
star
34

tradingmaster-react

React js application for TradingMasters
JavaScript
1
star
35

labyrinth_django

HTML
1
star
36

task_30dec

Data table
JavaScript
1
star
37

zustand-recipe

Recipes of Zustand in React
TypeScript
1
star
38

reversi

Reversi game
JavaScript
1
star
39

labyrinth

PHP
1
star
40

ps_xt_assignment

The SpaceX Launch Programs with Filter
JavaScript
1
star
41

marinesystemui

JavaScript
1
star
42

covid19

Covid19 Quiz for all
JavaScript
1
star
43

sadanandpai.github.io

Portfolio
Astro
1
star