This repo contains links of resources, theory subjects content and DSA questions & their solution for interview preparation from different websites like geeksfo
[![Contributors][contributors-sachu]][contributors-url]
[![Forks][forks-sachu]][forks-url]
[![Stargazers][stars-sachu]][stars-url]
[![Issues][issues-sachu]][issues-url]
[![MIT License][license-sachu]][license-url]
[![LinkedIn][linkedin-sachu]][linkedin-url]
[![Portfolio][portfolio-sachu]][portfolio-url]
# DATA STRUCTURES & ALGORITHMS
`Resources and Solutions` `^_^`
I have compiled many useful links for **Data Structures and Algorithms** questions and their solutions.
I have also listed the **Theory Subjects**, which are often **ignored** by students but one must have a vast knowledge of them to help them in their interviews.
I have also included the **Placement Ready Roadmap**, from `beginner level -> interview-ready candidate`
#### Table of Contents
- [DATA STRUCTURES & ALGORITHMS](#data-structures--algorithms) - [Table of Contents](#table-of-contents)
- [ Roadmap to Dream Placement](#-roadmap-to-dream-placement)
- [1️⃣ 100+ Top Product Based Companies](#1%EF%B8%8F⃣-100-top-product-based-companies)
- [2️⃣ Language, Data Structures, CP](#2%EF%B8%8F⃣-language-data-structures-cp)
- [ DSA Practice Resources](#-dsa-practice-resources)
- [ Leetcode Study Plan](#leetcode-study-plan)
- [ DSA Crack Sheet](#dsa-crack-sheet)
- [ Striver SDE Sheet](#striver-sde-sheet)
- [ Top Interview Preparation Questions](#top-interview-preparation-questions)
- [ Companywise Interview Questions](#companywise-interview-questions)
- [ Leetcode Daily Challenges](#leetcode-daily-challenges)
- [ Theory Subjects](#-theory-subjects)
- [1️⃣ Operating System](#1%EF%B8%8F⃣-operating-system)
- [2️⃣ Database Management & Design](#2%EF%B8%8F⃣-database-management--design)
- [3️⃣ Object Oriented Programming](#3%EF%B8%8F⃣-object-oriented-programming)
- [4️⃣ Computer Networks](#4%EF%B8%8F⃣-computer-networks)
- [ Notes and Resources](#-other-notes-and-resources)
- [Best book for Coding Interviews](#best-book-for-coding-interviews---cracking-the-coding-interview)
- [ Sources](#-sources)
- [ Contributing](#-contributing)
- [ License](#-license)
- [ Contact](#-contact)
## Roadmap to Dream Placement
### 1️⃣ 100+ Top Product Based Companies
People only chase after **FAANG**, because that's what is hyped up but now there are a lot of companies which:
- `Good opportunities to enhance oneself`
- `Pay Exceptionally Well`
- `Good Work Life`
- `Great Projects/Learning`
Check their names [here](https://drive.google.com/file/d/15rjcHqjDN7gPU5e6nxb_9NdApRf4TW1I/view?usp=sharing), and decide where you want to land.
### 2️⃣ Language, Data Structures, CP
- Guide to how to start coding if you have zero knowledge about this field
- Only way to become good at something is to practice, an expert was once a newbie too ;)
- Only consistency matters, coding once a week for 10 hours is not beneficial, rather coding 1 hour each day will benefit you more.
- Reading/Learning/Practice resources are also listed below
Language
- Intent
* Familiarity with Syntax
* Familiarity with all keywords & Basic Concepts
* main focus is on, that are you comfortable in writing code with your preferred language
- Choices
* C++
* References:
- [cppreferences](https://en.cppreference.com/w/cpp)
- [tutorialspoint](https://www.tutorialspoint.com/cplusplus/index.htm)
- [cplusplus](http://www.cplusplus.com/reference/)
- [Scaler Topics](https://www.scaler.com/topics/cpp/)
* Time Required:
- 1-2 weeks
- 1-2 hrs/day
* Java
* References:
- [Tutorialpoint](https://www.tutorialspoint.com/java/index.htm)
- [GFG](https://www.geeksforgeeks.org/java/)
- [Scaler](https://www.scaler.com/topics/java/)
* Time Required: same as above
* Python
* References:
- [Tutorialspoint](https://www.tutorialspoint.com/python/index.htm)
- [w3schools](https://www.w3schools.com/python/)
- [Scaler Topics](https://www.scaler.com/topics/python/)
- [Wiingy](https://wiingy.com/learn/python/python-overview/)
* Time Required: same as above
* **Important Callout:** Some companies don't allow python as a choice in their online coding test, so prepare accordingly
Data Structure and Algorithms
- Without this, No Software Engineering Interview, in a tech giant can be cracked
- Follow the DSA Crack Sheet List given below
- Time Required:
- 2-3 months
- 6-8 questions/day
- 3-6 hrs/day
Projects
* You need some projects to showcase your skills to your interviewer
* Choices:
- Mobile Development
- [Web Development](https://www.scaler.com/courses/web-development/)
- [Machine Learning](https://www.scaler.com/courses/machine-learning-course-training/)
- Some other stuff (like Blockchain, IoT, etc.)
* Time Required: 3 months (doing on weekends 6-8 hours)
Subjectve Topics
* Do a Subsequent reading, revision any day you get time
- Operating System
- OOPS, Object Oriented Skills
- DBMS, Databse Management
- Computer Networking
Competitive Programming
- CP needs time, it's not something that you can master in 2 months, We will get comfortable with online platforms and get a taste of competitive programming
- Leetcode questions nearly 150-200 questions
- Category:
- Easy: 30%
- Medium: 50%
- Hard: 20%
- If time allows then go for Codeforces div2 Level A, B and C question
- Time Required:
- 150-200 Questions
- 2 months
- 3-4 Ques/day
System Design
- Tech Level:
- System's overview like we will use this queue with DynamoDB and a scheduler with a justification of why we are using this DB, SQS, SNS, multithreading, etc.
- for SDE-1 equivalent positions, this level is somewhat rare
- Normal Understanding:
- knowledge of dividing system & creating a rough DFD of system
- knowledge of DB Schema creation
- able to create problem-solving logic or not
- Time Required: Just need some reading of articles/notes, can be pursued parallelly
- Great Resources:
- [Grokking](https://github.com/lei-hsia/grokking-system-design/blob/master/README.md)
- [Primer](https://github.com/donnemartin/system-design-primer/blob/master/README.md)
Misc Stuff
- [Aptitude/Reasoning](https://www.geeksforgeeks.org/quiz-corner-gq/)
- Do some mock tests to gain confidence
- Basic Programming MCQ
- [C/C++/Java/Python fundamentals](https://www.geeksforgeeks.org/quiz-corner-gq/)
- Print output type questions
- Time/space complexity Questions
- [SQL Queries](https://www.geeksforgeeks.org/dbms-gq/sql-gq/)
- [Puzzles](https://www.geeksforgeeks.org/puzzles/)
- [Always go through 50-60 interview experiences before interview](https://www.geeksforgeeks.org/company-interview-corner/)
## DSA Practice Resources
Remember: Deliberate practice does not mean looking for answers and memorizing them. You won't go very far with that approach. The more you are able to solve a problem yourself without any reference to answers, the more you will improve.
### [Leetcode Study Plan](./Leetcode%20Study%20Plan)
### [DSA Crack Sheet](./DSA%20Crack%20Sheet)
Data Structures and Algorithms Cracks Sheet (created by @lovebabbar) contains the most necessary questions to learn and grasp about most common and important DS and Algos
### [Striver SDE Sheet](./Striver%20Sheet)
Software Developer Engineer Sheet (created by @striver) contains asked during interviews by good product based companies.
The sheet is divided in 30 parts to be completed in a month to get ready for an interview at a good company
### [Top Interview Preparation Questions](./Leetcode%20Top%20Interview%20Questions)
This is LeetCode's official curated list of Top classic interview questions to help you land your dream job. Our top interview questions are divided into the following series:
### [Companywise Interview Questions](./Companywise%20Questions)
It is containing the list of most asked company wise questions available on Leetcode.
> [Download Full PDFs](https://mega.nz/folder/HkoglB7C#o2K_WMwTKFgdk_powwR9-g)
Every pdf file corresponds to a list of questions on leetcode for a specific company based on the leetcode company tags.
The list of questions within each pdf is further sorted by their frequency, so the most popular question for a specific company is at the top.
### [Leetcode Daily Challenges](./Leetcode%20Daily%20Challenge)
This Challenge is beginner-friendly. It consists of daily problems given by Leetcode.
A problem is added here each day.
### [Technical Interview Questions](https://www.interviewbit.com/technical-interview-questions)
The Ultimate Guide to Acing Your Technical Interview(2022): Review these commonly asked technical job interview questions and prepare your answer.
## Theory Subjects
These must-do questions should be done after studying these subjects
If you don't have much time left for interviews, then you can directly look at them
MUST-DO Questions for Interviews
(DBMS, CN and OS)
Operating System:
- What is the main purpose of an operating system? Discuss different types?
- What is a socket, kernel and monolithic kernel ?
- Difference between process and program and thread? Different types of process.
- Define virtual memory, thrashing, threads.
- What is RAID ? Different types.
- What is a deadlock ? Different conditions to achieve a deadlock.
- What is fragmentation? Types of fragmentation.
- What is spooling ?
- What is semaphore and mutex (Differences might be asked)? Define Binary semaphore.
- Belady’s Anomaly
- Starving and Aging in OS
- Why does trashing occur?
- What is paging and why do we need it?
- Demand Paging, Segmentation
- Real Time Operating System, types of RTOS.
- Difference between main memory and secondary memory.
- Dynamic Binding
- FCFS Scheduling
- SJF Scheduling
- SRTF Scheduling
- LRTF Scheduling
- Priority Scheduling
- Round Robin Scheduling
- Producer Consumer Problem
- Banker’s Algorithm
- Explain Cache
- Diff between direct mapping and associative mapping
- Diff between multitasking and multiprocessing
DBMS:
- What is DBMS ? Mention advantages..
- [What is Database?](https://www.scaler.com/topics/dbms/what-is-database/)
- What is a database system?
- What is RDBMS ? Properties..
- Types of database languages
- [ACID properties](https://www.scaler.com/topics/dbms/acid-properties-in-dbms/) (VVVVV IMP)
- Difference between vertical and horizontal scaling
- What is sharding
- [Keys in DBMS](https://www.scaler.com/topics/dbms/keys-in-dbms/)
- Types of relationship
- Data abstraction in DBMS, three levels of it
- [Indexing in DBMS](https://www.scaler.com/topics/dbms/indexing-in-dbms/)
- What is DDL (Data Definition Language)
- What is DML (Data Manipulation Language)
- [What is normalization](https://www.scaler.com/topics/dbms/normalization-in-dbms/) ? Types of them ..
- [What is denormalization](https://www.scaler.com/topics/denormalization-in-dbms/) ?
- [What is a functional dependency](https://www.scaler.com/topics/dbms/functional-dependency-in-dbms/) ?
- E-R Model ?
- Conflict Serializability in DBMS ..
- Explain Normal forms in DBMS
- What is CCP ? (