MCPcopy Index your code
hub / github.com/ankushchimnani/DSA-Must-Do-Questions

github.com/ankushchimnani/DSA-Must-Do-Questions @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
435 symbols 743 edges 156 files 8 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Data Structures & Algorithms

This repo consists of some of the most popular interview questions based on Data Structures and Algorithms. This repo is aimed to boost your interview preparation, and narrow down the number of questions to the most important ones.

Topic Covered

The repo contains some of the most important questions from the following topics :

  • Implementation
  • One-Dimensional Array
  • Two-Dimensional Array
  • Two Pointer
  • Sliding Window
  • Sorting Algorithms
  • Strings
  • Stacks
  • Queues
  • Recursion
  • Backtracking
  • Greedy Algorithms
  • Binary Search
  • Dynamic Programming

Inspiration

Coding interviews have never been more popular. With the boom of the internet, not only we got easier access to information, but also, the requirement for high - quality developers, reached an all time high. As the demand for high - quality developers increased, coding interviews became tougher and tougher. The questions around Data Structures and Algorithms have been a nemesis for developers all over. There seems to be a problem of too - many, when one looks for resources on the internet around these, and most times the resources are not structured. This is the problem that this repo intends to solve, by providing the minimum number of question that can get you up and ready for your next coding interview.

After a thorough research and studying data gathered from various sources, we gathered questions, which are not just important from an interview perspective, but also help in building a solid understanding of the underlying topics, we came up with this curated set of questions. We have tried to make this repo a one-stop solution for your DSA - Preparation needs, and therefore, for each question we have provided the problem statement, a well-curated thorough editorial, and ideal solutions in some of the more popular languages. Currently, you will find solutions in Java, C++, and Python, but slowly, we will be adding ideal solutions in other languages as well.

The Editorials are thorough, and we have made it in the simplest language possible, because as developers, we understand, SIMPLE IS BEAUTIFUL. The editorials cover all aspects of a particular problem, from the explanation of the question, to the explanation of different approaches, and also the Time and Space Complexity of the proposed solution. In the ideal solutions, we have tried to follow all the best practices according to the industry standards, and are made in such a way, that you not only understand the approach, but also the implementation, in case it is required.

We have ordered the questions in a way, such that the difficulty level is enhanced at each step, which keeps you motivated and challenged at the very same time.

Core symbols most depended-on inside this repo

pop
called by 26
13_Min Stack/Ideal Solutions/minStack.py
top
called by 18
13_Min Stack/Ideal Solutions/minStack.py
print
called by 15
21_Detect Loop in a Linked List/Ideal Solutions/detectLoop.py
push
called by 14
13_Min Stack/Ideal Solutions/minStack.py
add
called by 12
31_N-Queens/Ideal Solutions/nQueens.java
swap
called by 8
08_Bubble sort/Ideal Solutions/bubbleSort.py
push
called by 8
15_Stacksusing two Queues/Ideal Solutions/stackUsingQueues.py
pop
called by 8
15_Stacksusing two Queues/Ideal Solutions/stackUsingQueues.py

Shape

Method 193
Function 161
Class 81

Languages

Java47%
C++31%
Python22%

Modules by API surface

20_Reverse a Linked List/Ideal Solutions/reverseALinkedList.cpp10 symbols
22_Palindrome Linked List/Ideal Solutions/palindromeList.py8 symbols
15_Stacksusing two Queues/Ideal Solutions/stackUsingTwoQueues.java8 symbols
13_Min Stack/Ideal Solutions/minStack.java8 symbols
22_Palindrome Linked List/Ideal Solutions/palindromeLinkedList.java7 symbols
21_Detect Loop in a Linked List/Ideal Solutions/detectLoopInLinkedList.java7 symbols
21_Detect Loop in a Linked List/Ideal Solutions/detectLoop.py7 symbols
20_Reverse a Linked List/Ideal Solutions/reverseList.py7 symbols
20_Reverse a Linked List/Ideal Solutions/reverseLinkedList.java7 symbols
19_Add Two Linked List/Ideal Solutions/addTwoList.py7 symbols
19_Add Two Linked List/Ideal Solutions/addTwoLinkedList.java7 symbols
13_Min Stack/Ideal Solutions/minStack.cpp7 symbols

For agents

$ claude mcp add DSA-Must-Do-Questions \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page