List of most asked Programming Interview Questions.
Are you preparing for a coding interview? This tweet is for you. It contains a list of the most asked interview questions from each topic.
Arrays
- How is an array sorted using quicksort?
- How do you reverse an array?
- How do you remove duplicates from an array?
- How do you find the 2nd largest number in an unsorted integer array?
Linked Lists
- How do you find the length of a linked list?
- How do you reverse a linked list?
- How do you find the third node from the end?
- How are duplicate nodes removed in an unsorted linked list?
Strings
- How do you check if a string contains only digits?
- How can a given string be reversed?
- How do you find the first non-repeated character?
- How do you find duplicate characters in strings?
Binary Trees
- How are all leaves of a binary tree printed?
- How do you check if a tree is a binary search tree?
- How is a binary search tree implemented?
- Find the lowest common ancestor in a binary tree?
Graph
- How to detect a cycle in a directed graph?
- How to detect a cycle in an undirected graph?
- Find the total number of strongly connected components?
- Find whether a path exists between two nodes of a graph?
- Find the minimum number of swaps required to sort an array.
Dynamic Programming
1. Find the longest common subsequence?
2. Find the longest common substring?
3. Coin change problem?
4. Box stacking problem?
5. Count the number of ways to cover a distance?
Are you preparing for a coding interview? This tweet is for you. It contains a list of the most asked interview questions from each topic.
Arrays
- How is an array sorted using quicksort?
- How do you reverse an array?
- How do you remove duplicates from an array?
- How do you find the 2nd largest number in an unsorted integer array?
Linked Lists
- How do you find the length of a linked list?
- How do you reverse a linked list?
- How do you find the third node from the end?
- How are duplicate nodes removed in an unsorted linked list?
Strings
- How do you check if a string contains only digits?
- How can a given string be reversed?
- How do you find the first non-repeated character?
- How do you find duplicate characters in strings?
Binary Trees
- How are all leaves of a binary tree printed?
- How do you check if a tree is a binary search tree?
- How is a binary search tree implemented?
- Find the lowest common ancestor in a binary tree?
Graph
- How to detect a cycle in a directed graph?
- How to detect a cycle in an undirected graph?
- Find the total number of strongly connected components?
- Find whether a path exists between two nodes of a graph?
- Find the minimum number of swaps required to sort an array.
Dynamic Programming
1. Find the longest common subsequence?
2. Find the longest common substring?
3. Coin change problem?
4. Box stacking problem?
5. Count the number of ways to cover a distance?
π4β€2π₯1
If I Were to Start My Data Science Career from Scratch, Here's What I Would Do π
1οΈβ£ Master Advanced SQL
Foundations: Learn database structures, tables, and relationships.
Basic SQL Commands: SELECT, FROM, WHERE, ORDER BY.
Aggregations: Get hands-on with SUM, COUNT, AVG, MIN, MAX, GROUP BY, and HAVING.
JOINs: Understand LEFT, RIGHT, INNER, OUTER, and CARTESIAN joins.
Advanced Concepts: CTEs, window functions, and query optimization.
Metric Development: Build and report metrics effectively.
2οΈβ£ Study Statistics & A/B Testing
Descriptive Statistics: Know your mean, median, mode, and standard deviation.
Distributions: Familiarize yourself with normal, Bernoulli, binomial, exponential, and uniform distributions.
Probability: Understand basic probability and Bayes' theorem.
Intro to ML: Start with linear regression, decision trees, and K-means clustering.
Experimentation Basics: T-tests, Z-tests, Type 1 & Type 2 errors.
A/B Testing: Design experimentsβhypothesis formation, sample size calculation, and sample biases.
3οΈβ£ Learn Python for Data
Data Manipulation: Use pandas for data cleaning and manipulation.
Data Visualization: Explore matplotlib and seaborn for creating visualizations.
Hypothesis Testing: Dive into scipy for statistical testing.
Basic Modeling: Practice building models with scikit-learn.
4οΈβ£ Develop Product Sense
Product Management Basics: Manage projects and understand the product life cycle.
Data-Driven Strategy: Leverage data to inform decisions and measure success.
Metrics in Business: Define and evaluate metrics that matter to the business.
5οΈβ£ Hone Soft Skills
Communication: Clearly explain data findings to technical and non-technical audiences.
Collaboration: Work effectively in teams.
Time Management: Prioritize and manage projects efficiently.
Self-Reflection: Regularly assess and improve your skills.
6οΈβ£ Bonus: Basic Data Engineering
Data Modeling: Understand dimensional modeling and trade-offs in normalization vs. denormalization.
ETL: Set up extraction jobs, manage dependencies, clean and validate data.
Pipeline Testing: Conduct unit testing and ensure data quality throughout the pipeline.
I have curated the best interview resources to crack Data Science Interviews
ππ
https://whatsapp.com/channel/0029Va8v3eo1NCrQfGMseL2D
Like if you need similar content ππ
1οΈβ£ Master Advanced SQL
Foundations: Learn database structures, tables, and relationships.
Basic SQL Commands: SELECT, FROM, WHERE, ORDER BY.
Aggregations: Get hands-on with SUM, COUNT, AVG, MIN, MAX, GROUP BY, and HAVING.
JOINs: Understand LEFT, RIGHT, INNER, OUTER, and CARTESIAN joins.
Advanced Concepts: CTEs, window functions, and query optimization.
Metric Development: Build and report metrics effectively.
2οΈβ£ Study Statistics & A/B Testing
Descriptive Statistics: Know your mean, median, mode, and standard deviation.
Distributions: Familiarize yourself with normal, Bernoulli, binomial, exponential, and uniform distributions.
Probability: Understand basic probability and Bayes' theorem.
Intro to ML: Start with linear regression, decision trees, and K-means clustering.
Experimentation Basics: T-tests, Z-tests, Type 1 & Type 2 errors.
A/B Testing: Design experimentsβhypothesis formation, sample size calculation, and sample biases.
3οΈβ£ Learn Python for Data
Data Manipulation: Use pandas for data cleaning and manipulation.
Data Visualization: Explore matplotlib and seaborn for creating visualizations.
Hypothesis Testing: Dive into scipy for statistical testing.
Basic Modeling: Practice building models with scikit-learn.
4οΈβ£ Develop Product Sense
Product Management Basics: Manage projects and understand the product life cycle.
Data-Driven Strategy: Leverage data to inform decisions and measure success.
Metrics in Business: Define and evaluate metrics that matter to the business.
5οΈβ£ Hone Soft Skills
Communication: Clearly explain data findings to technical and non-technical audiences.
Collaboration: Work effectively in teams.
Time Management: Prioritize and manage projects efficiently.
Self-Reflection: Regularly assess and improve your skills.
6οΈβ£ Bonus: Basic Data Engineering
Data Modeling: Understand dimensional modeling and trade-offs in normalization vs. denormalization.
ETL: Set up extraction jobs, manage dependencies, clean and validate data.
Pipeline Testing: Conduct unit testing and ensure data quality throughout the pipeline.
I have curated the best interview resources to crack Data Science Interviews
ππ
https://whatsapp.com/channel/0029Va8v3eo1NCrQfGMseL2D
Like if you need similar content ππ
π2β€1π₯1
LEGEND Form Project π
π
-----------------------------------------------------
Complete Source Code π
-----------------------------------------------------
<html>
<head>
<style>
.outer{
margin:auto;
height:300px;
width:400px;
border:2px solid black;
position:relative
}
p{
margin-left:80px;
}
.in{
margin-left:80px;
padding:10px
}
#bt{
margin-top:20px;
position:absolute;
left:150px;
}
#bt:hover{
background:green;
font-size:13px;
cursor:pointer;
color:white;
}
</style>
<script>
function fa(){
if(a.value=="" || b.value==""){
f()
document.getElementById("a").style.border="3px solid red"
document.getElementById("b").style.border="3px solid red"
bt.value="Pahila data tak"
}
else{
document.getElementById("a").style.border="3px solid green"
document.getElementById("b").style.border="3px solid green"
bt.value="Ha thik ahe ata"
bt.style.left="120px";
}
}
flag=1
function f(){
if(flag==1){
bt.style.left="210px"
flag=2
}
else if(flag==2){
bt.style.left="80px"
flag=1
}
}
</script>
</head>
<body>
<div class="outer">
<h1 style="text-align:center">Legend form</h1>
<p>Enter Id</p>
<input class="in" type="text" placeholder="Enter id" id="a"/>
<p>Enter Confirm Pass</p>
<input class="in" type="password" placeholder="Enter password" id="b"/>
<br>
<input type="submit" onmouseenter="fa()" onclick="alert('waaaa')" id="bt" />
</div>
</body>
</html>
-----------------------------------------------------
Complete Source Code π
-----------------------------------------------------
<html>
<head>
<style>
.outer{
margin:auto;
height:300px;
width:400px;
border:2px solid black;
position:relative
}
p{
margin-left:80px;
}
.in{
margin-left:80px;
padding:10px
}
#bt{
margin-top:20px;
position:absolute;
left:150px;
}
#bt:hover{
background:green;
font-size:13px;
cursor:pointer;
color:white;
}
</style>
<script>
function fa(){
if(a.value=="" || b.value==""){
f()
document.getElementById("a").style.border="3px solid red"
document.getElementById("b").style.border="3px solid red"
bt.value="Pahila data tak"
}
else{
document.getElementById("a").style.border="3px solid green"
document.getElementById("b").style.border="3px solid green"
bt.value="Ha thik ahe ata"
bt.style.left="120px";
}
}
flag=1
function f(){
if(flag==1){
bt.style.left="210px"
flag=2
}
else if(flag==2){
bt.style.left="80px"
flag=1
}
}
</script>
</head>
<body>
<div class="outer">
<h1 style="text-align:center">Legend form</h1>
<p>Enter Id</p>
<input class="in" type="text" placeholder="Enter id" id="a"/>
<p>Enter Confirm Pass</p>
<input class="in" type="password" placeholder="Enter password" id="b"/>
<br>
<input type="submit" onmouseenter="fa()" onclick="alert('waaaa')" id="bt" />
</div>
</body>
</html>
π4π₯1
10 Coding Project Ideas to Boost Your Portfolio
β To-Do List App β Practice CRUD operations and UI/UX basics
β Weather App (API) β Learn to work with real-time APIs
β Blog Website β Build full-stack with auth, CMS, and comments
β Portfolio Website β Showcase your skills and projects professionally
β Expense Tracker β Handle forms, charts, and local storage
β Chat App β Real-time messaging using WebSockets or Firebase
β Movie Recommendation System β Intro to ML with collaborative filtering
β E-commerce Store β Simulate cart, checkout, payment logic
β SQL Dashboard with Power BI/Tableau β Combine backend + data viz skills
β AI Chatbot β Use NLP libraries like spaCy or transformers
Python Projects: https://whatsapp.com/channel/0029Vau5fZECsU9HJFLacm2a
ENJOY LEARNING ππ
β To-Do List App β Practice CRUD operations and UI/UX basics
β Weather App (API) β Learn to work with real-time APIs
β Blog Website β Build full-stack with auth, CMS, and comments
β Portfolio Website β Showcase your skills and projects professionally
β Expense Tracker β Handle forms, charts, and local storage
β Chat App β Real-time messaging using WebSockets or Firebase
β Movie Recommendation System β Intro to ML with collaborative filtering
β E-commerce Store β Simulate cart, checkout, payment logic
β SQL Dashboard with Power BI/Tableau β Combine backend + data viz skills
β AI Chatbot β Use NLP libraries like spaCy or transformers
Python Projects: https://whatsapp.com/channel/0029Vau5fZECsU9HJFLacm2a
ENJOY LEARNING ππ
β€5π2