List of most asked Programming Interview Questions.
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?
React with β€οΈ for the detailed answers
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?
React with β€οΈ for the detailed answers
β€5π5
List of Frontend Project Ideas π‘π¨π»βπ»
Beginner Projects
πΉ Personal Portfolio Website
πΉ Responsive Landing Page
πΉ Simple Calculator
πΉ To-Do List App
πΉ Weather App
Intermediate Projects
πΈ Blog Website
πΈ E-commerce Product Page
πΈ Recipe Finder App
πΈ Interactive Chat App
πΈ Music Player
Advanced Projects
πΊ Social Media Dashboard
πΊ Real-time Chat Application
πΊ Multi-page E-commerce Website
πΊ Dynamic Data Visualization Dashboard
React β€οΈ for more
Beginner Projects
πΉ Personal Portfolio Website
πΉ Responsive Landing Page
πΉ Simple Calculator
πΉ To-Do List App
πΉ Weather App
Intermediate Projects
πΈ Blog Website
πΈ E-commerce Product Page
πΈ Recipe Finder App
πΈ Interactive Chat App
πΈ Music Player
Advanced Projects
πΊ Social Media Dashboard
πΊ Real-time Chat Application
πΊ Multi-page E-commerce Website
πΊ Dynamic Data Visualization Dashboard
React β€οΈ for more
β€4π1
Tips for solving leetcode codings interview problems
If input array is sorted then
- Binary search
- Two pointers
If asked for all permutations/subsets then
- Backtracking
If given a tree then
- DFS
- BFS
If given a graph then
- DFS
- BFS
If given a linked list then
- Two pointers
If recursion is banned then
- Stack
If must solve in-place then
- Swap corresponding values
- Store one or more different values in the same pointer
If asked for maximum/minimum subarray/subset/options then
- Dynamic programming
If asked for top/least K items then
- Heap
If asked for common strings then
- Map
- Trie
Else
- Map/Set for O(1) time & O(n) space
- Sort input for O(nlogn) time and O(1) space
If input array is sorted then
- Binary search
- Two pointers
If asked for all permutations/subsets then
- Backtracking
If given a tree then
- DFS
- BFS
If given a graph then
- DFS
- BFS
If given a linked list then
- Two pointers
If recursion is banned then
- Stack
If must solve in-place then
- Swap corresponding values
- Store one or more different values in the same pointer
If asked for maximum/minimum subarray/subset/options then
- Dynamic programming
If asked for top/least K items then
- Heap
If asked for common strings then
- Map
- Trie
Else
- Map/Set for O(1) time & O(n) space
- Sort input for O(nlogn) time and O(1) space
π4β€1
Essential Programming Languages to Learn Data Science ππ
1. Python: Python is one of the most popular programming languages for data science due to its simplicity, versatility, and extensive library support (such as NumPy, Pandas, and Scikit-learn).
2. R: R is another popular language for data science, particularly in academia and research settings. It has powerful statistical analysis capabilities and a wide range of packages for data manipulation and visualization.
3. SQL: SQL (Structured Query Language) is essential for working with databases, which are a critical component of data science projects. Knowledge of SQL is necessary for querying and manipulating data stored in relational databases.
4. Java: Java is a versatile language that is widely used in enterprise applications and big data processing frameworks like Apache Hadoop and Apache Spark. Knowledge of Java can be beneficial for working with large-scale data processing systems.
5. Scala: Scala is a functional programming language that is often used in conjunction with Apache Spark for distributed data processing. Knowledge of Scala can be valuable for building high-performance data processing applications.
6. Julia: Julia is a high-performance language specifically designed for scientific computing and data analysis. It is gaining popularity in the data science community due to its speed and ease of use for numerical computations.
7. MATLAB: MATLAB is a proprietary programming language commonly used in engineering and scientific research for data analysis, visualization, and modeling. It is particularly useful for signal processing and image analysis tasks.
Free Resources to master data analytics concepts ππ
Data Analysis with R
Intro to Data Science
Practical Python Programming
SQL for Data Analysis
Java Essential Concepts
Machine Learning with Python
Data Science Project Ideas
Learning SQL FREE Book
Join @free4unow_backup for more free resources.
ENJOY LEARNINGππ
1. Python: Python is one of the most popular programming languages for data science due to its simplicity, versatility, and extensive library support (such as NumPy, Pandas, and Scikit-learn).
2. R: R is another popular language for data science, particularly in academia and research settings. It has powerful statistical analysis capabilities and a wide range of packages for data manipulation and visualization.
3. SQL: SQL (Structured Query Language) is essential for working with databases, which are a critical component of data science projects. Knowledge of SQL is necessary for querying and manipulating data stored in relational databases.
4. Java: Java is a versatile language that is widely used in enterprise applications and big data processing frameworks like Apache Hadoop and Apache Spark. Knowledge of Java can be beneficial for working with large-scale data processing systems.
5. Scala: Scala is a functional programming language that is often used in conjunction with Apache Spark for distributed data processing. Knowledge of Scala can be valuable for building high-performance data processing applications.
6. Julia: Julia is a high-performance language specifically designed for scientific computing and data analysis. It is gaining popularity in the data science community due to its speed and ease of use for numerical computations.
7. MATLAB: MATLAB is a proprietary programming language commonly used in engineering and scientific research for data analysis, visualization, and modeling. It is particularly useful for signal processing and image analysis tasks.
Free Resources to master data analytics concepts ππ
Data Analysis with R
Intro to Data Science
Practical Python Programming
SQL for Data Analysis
Java Essential Concepts
Machine Learning with Python
Data Science Project Ideas
Learning SQL FREE Book
Join @free4unow_backup for more free resources.
ENJOY LEARNINGππ
π3β€1
Call for papers on AI to AI Journey* conference journal has started!
Prize for the best scientific paper - 1 million roubles!
Selected papers will be published in the scientific journal Doklady Mathematics.
π The journal:
β’ Indexed in the largest bibliographic databases of scientific citations
β’ Accessible to an international audience and published in the worldβs digital libraries
Submit your article by August 20 and get the opportunity not only to publish your research the scientific journal, but also to present it at the AI Journey conference.
Prize for the best article - 1 million roubles!
More detailed information can be found in the Selection Rules -> AI Journey
*AI Journey - a major online conference in the field of AI technologies
Prize for the best scientific paper - 1 million roubles!
Selected papers will be published in the scientific journal Doklady Mathematics.
π The journal:
β’ Indexed in the largest bibliographic databases of scientific citations
β’ Accessible to an international audience and published in the worldβs digital libraries
Submit your article by August 20 and get the opportunity not only to publish your research the scientific journal, but also to present it at the AI Journey conference.
Prize for the best article - 1 million roubles!
More detailed information can be found in the Selection Rules -> AI Journey
*AI Journey - a major online conference in the field of AI technologies
π1