DSA INTERVIEW QUESTIONS AND ANSWERS
1. What is the difference between file structure and storage structure?
The difference lies in the memory area accessed. Storage structure refers to the data structure in the memory of the computer system,
whereas file structure represents the storage structure in the auxiliary memory.
2. Are linked lists considered linear or non-linear Data Structures?
Linked lists are considered both linear and non-linear data structures depending upon the application they are used for. When used for
access strategies, it is considered as a linear data-structure. When used for data storage, it is considered a non-linear data structure.
3. How do you reference all of the elements in a one-dimension array?
All of the elements in a one-dimension array can be referenced using an indexed loop as the array subscript so that the counter runs
from 0 to the array size minus one.
4. What are dynamic Data Structures? Name a few.
They are collections of data in memory that expand and contract to grow or shrink in size as a program runs. This enables the programmer
to control exactly how much memory is to be utilized.Examples are the dynamic array, linked list, stack, queue, and heap.
5. What is a Dequeue?
It is a double-ended queue, or a data structure, where the elements can be inserted or deleted at both ends (FRONT and REAR).
6. What operations can be performed on queues?
enqueue() adds an element to the end of the queue
dequeue() removes an element from the front of the queue
init() is used for initializing the queue
isEmpty tests for whether or not the queue is empty
The front is used to get the value of the first data item but does not remove it
The rear is used to get the last item from a queue.
7. What is the merge sort? How does it work?
Merge sort is a divide-and-conquer algorithm for sorting the data. It works by merging and sorting adjacent data to create bigger sorted
lists, which are then merged recursively to form even bigger sorted lists until you have one single sorted list.
8.How does the Selection sort work?
Selection sort works by repeatedly picking the smallest number in ascending order from the list and placing it at the beginning. This process is repeated moving toward the end of the list or sorted subarray.
Scan all items and find the smallest. Switch over the position as the first item. Repeat the selection sort on the remaining N-1 items. We always iterate forward (i from 0 to N-1) and swap with the smallest element (always i).
Time complexity: best case O(n2); worst O(n2)
Space complexity: worst O(1)
9. What are the applications of graph Data Structure?
Transport grids where stations are represented as vertices and routes as the edges of the graph
Utility graphs of power or water, where vertices are connection points and edge the wires or pipes connecting them
Social network graphs to determine the flow of information and hotspots (edges and vertices)
Neural networks where vertices represent neurons and edge the synapses between them
10. What is an AVL tree?
An AVL (Adelson, Velskii, and Landi) tree is a height balancing binary search tree in which the difference of heights of the left
and right subtrees of any node is less than or equal to one. This controls the height of the binary search tree by not letting
it get skewed. This is used when working with a large data set, with continual pruning through insertion and deletion of data.
11. Differentiate NULL and VOID ?
Null is a value, whereas Void is a data type identifier
Null indicates an empty value for a variable, whereas void indicates pointers that have no initial size
Null means it never existed; Void means it existed but is not in effect
You can check these resources for Coding interview Preparation
Credits: https://t.iss.one/free4unow_backup
All the best 👍👍
1. What is the difference between file structure and storage structure?
The difference lies in the memory area accessed. Storage structure refers to the data structure in the memory of the computer system,
whereas file structure represents the storage structure in the auxiliary memory.
2. Are linked lists considered linear or non-linear Data Structures?
Linked lists are considered both linear and non-linear data structures depending upon the application they are used for. When used for
access strategies, it is considered as a linear data-structure. When used for data storage, it is considered a non-linear data structure.
3. How do you reference all of the elements in a one-dimension array?
All of the elements in a one-dimension array can be referenced using an indexed loop as the array subscript so that the counter runs
from 0 to the array size minus one.
4. What are dynamic Data Structures? Name a few.
They are collections of data in memory that expand and contract to grow or shrink in size as a program runs. This enables the programmer
to control exactly how much memory is to be utilized.Examples are the dynamic array, linked list, stack, queue, and heap.
5. What is a Dequeue?
It is a double-ended queue, or a data structure, where the elements can be inserted or deleted at both ends (FRONT and REAR).
6. What operations can be performed on queues?
enqueue() adds an element to the end of the queue
dequeue() removes an element from the front of the queue
init() is used for initializing the queue
isEmpty tests for whether or not the queue is empty
The front is used to get the value of the first data item but does not remove it
The rear is used to get the last item from a queue.
7. What is the merge sort? How does it work?
Merge sort is a divide-and-conquer algorithm for sorting the data. It works by merging and sorting adjacent data to create bigger sorted
lists, which are then merged recursively to form even bigger sorted lists until you have one single sorted list.
8.How does the Selection sort work?
Selection sort works by repeatedly picking the smallest number in ascending order from the list and placing it at the beginning. This process is repeated moving toward the end of the list or sorted subarray.
Scan all items and find the smallest. Switch over the position as the first item. Repeat the selection sort on the remaining N-1 items. We always iterate forward (i from 0 to N-1) and swap with the smallest element (always i).
Time complexity: best case O(n2); worst O(n2)
Space complexity: worst O(1)
9. What are the applications of graph Data Structure?
Transport grids where stations are represented as vertices and routes as the edges of the graph
Utility graphs of power or water, where vertices are connection points and edge the wires or pipes connecting them
Social network graphs to determine the flow of information and hotspots (edges and vertices)
Neural networks where vertices represent neurons and edge the synapses between them
10. What is an AVL tree?
An AVL (Adelson, Velskii, and Landi) tree is a height balancing binary search tree in which the difference of heights of the left
and right subtrees of any node is less than or equal to one. This controls the height of the binary search tree by not letting
it get skewed. This is used when working with a large data set, with continual pruning through insertion and deletion of data.
11. Differentiate NULL and VOID ?
Null is a value, whereas Void is a data type identifier
Null indicates an empty value for a variable, whereas void indicates pointers that have no initial size
Null means it never existed; Void means it existed but is not in effect
You can check these resources for Coding interview Preparation
Credits: https://t.iss.one/free4unow_backup
All the best 👍👍
👍29❤2🔥2
Two mistakes many developers make with side projects:
1. Don't add README
2. Don't deploy them to internet
Recruiters don't understand your code, and won't pull it from GitHub and run it locally.
Explain the domain in the README. Make a demo publicly available.
Don't just code; communicate. Let your project be a story, not just a repository.
1. Don't add README
2. Don't deploy them to internet
Recruiters don't understand your code, and won't pull it from GitHub and run it locally.
Explain the domain in the README. Make a demo publicly available.
Don't just code; communicate. Let your project be a story, not just a repository.
❤27👍13👎6🔥1👏1
john-c-shovic-raspberry-pi-iot-projects-prototyping-2021.epub
5.9 MB
Raspberry Pi IoT Projects
John C. Shovic, 2021
John C. Shovic, 2021
👍12
Here are some of the most popular python project ideas: 💡
Simple Calculator
Text-Based Adventure Game
Number Guessing Game
Password Generator
Dice Rolling Simulator
Mad Libs Generator
Currency Converter
Leap Year Checker
Word Counter
Quiz Program
Email Slicer
Rock-Paper-Scissors Game
Web Scraper (Simple)
Text Analyzer
Interest Calculator
Unit Converter
Simple Drawing Program
File Organizer
BMI Calculator
Tic-Tac-Toe Game
To-Do List Application
Inspirational Quote Generator
Task Automation Script
Simple Weather App
Automate data cleaning and analysis (EDA)
Sales analysis
Sentiment analysis
Price prediction
Customer Segmentation
Time series forecasting
Image classification
Spam email detection
Credit card fraud detection
Market basket analysis
NLP, etc
These are just starting points. Feel free to explore, combine ideas, and personalize your projects based on your interest and skills. 🎯
Simple Calculator
Text-Based Adventure Game
Number Guessing Game
Password Generator
Dice Rolling Simulator
Mad Libs Generator
Currency Converter
Leap Year Checker
Word Counter
Quiz Program
Email Slicer
Rock-Paper-Scissors Game
Web Scraper (Simple)
Text Analyzer
Interest Calculator
Unit Converter
Simple Drawing Program
File Organizer
BMI Calculator
Tic-Tac-Toe Game
To-Do List Application
Inspirational Quote Generator
Task Automation Script
Simple Weather App
Automate data cleaning and analysis (EDA)
Sales analysis
Sentiment analysis
Price prediction
Customer Segmentation
Time series forecasting
Image classification
Spam email detection
Credit card fraud detection
Market basket analysis
NLP, etc
These are just starting points. Feel free to explore, combine ideas, and personalize your projects based on your interest and skills. 🎯
👍35❤3
Top 16 Java Projects
1. Airline Reservation System:
- https://lnkd.in/dRFK2vPh
2. Data Visualization Software:
- https://lnkd.in/dVWVU8xn
3. Electricity Billing System:
- https://lnkd.in/dekycNXQ
4. E-Healthcare Management System:
- https://lnkd.in/dEkE2raN
5. Email Client Software:
- https://lnkd.in/d_qz7U9E
6. Library Management System:
- https://lnkd.in/dY7bDjFn
7. Network Packet Sniffer:
- https://lnkd.in/dXPtyzz4
8. Online Bank Management System:
- https://lnkd.in/d4Qzy8fN
9. Online Medical Management System:
- https://lnkd.in/dHciHGGz
10. Online Quiz Management System:
- https://lnkd.in/djKs3DJq
11. Online Survey System:
- https://lnkd.in/dw9Cmhix
12. RSS Feed Reader:
- https://lnkd.in/dupDQPnG
13. Smart City Project:
- https://lnkd.in/d3YT36aJ
14. Stock Management System:
- https://lnkd.in/dTb3hikj
15. Supply Chain Management System:
- https://lnkd.in/dAzJthMQ
16. Virtual Private Network:
- https://lnkd.in/dyEcgrFC
Share our channel link with friends and family: https://t.iss.one/Programming_experts
All the best 👍👍
1. Airline Reservation System:
- https://lnkd.in/dRFK2vPh
2. Data Visualization Software:
- https://lnkd.in/dVWVU8xn
3. Electricity Billing System:
- https://lnkd.in/dekycNXQ
4. E-Healthcare Management System:
- https://lnkd.in/dEkE2raN
5. Email Client Software:
- https://lnkd.in/d_qz7U9E
6. Library Management System:
- https://lnkd.in/dY7bDjFn
7. Network Packet Sniffer:
- https://lnkd.in/dXPtyzz4
8. Online Bank Management System:
- https://lnkd.in/d4Qzy8fN
9. Online Medical Management System:
- https://lnkd.in/dHciHGGz
10. Online Quiz Management System:
- https://lnkd.in/djKs3DJq
11. Online Survey System:
- https://lnkd.in/dw9Cmhix
12. RSS Feed Reader:
- https://lnkd.in/dupDQPnG
13. Smart City Project:
- https://lnkd.in/d3YT36aJ
14. Stock Management System:
- https://lnkd.in/dTb3hikj
15. Supply Chain Management System:
- https://lnkd.in/dAzJthMQ
16. Virtual Private Network:
- https://lnkd.in/dyEcgrFC
Share our channel link with friends and family: https://t.iss.one/Programming_experts
All the best 👍👍
👍34🔥22❤8🥰1
Top 10 Github Repositories For Web Developer
1. Web Developer-Roadmap : https://github.com/kamranahmedse/developer-roadmap
2. 30-Seconds-Of-Code : https://github.com/30-seconds/30-seconds-of-code
3. Awesome-Cheatsheets : https://github.com/LeCoupa/awesome-cheatsheets
4. CSS-Protips : https://github.com/AllThingsSmitty/css-protips
5. 33-JS-Concepts : https://github.com/leonardomso/33-js-concepts
6. You-Dont-Know-JS : https://github.com/getify/You-Dont-Know-JS/tree/2nd-ed
7. Front-End-Checklist : https://github.com/thedaviddias/Front-End-Checklist
8. Javascript-Questions : https://github.com/lydiahallie/javascript-questions
Javascript basics : https://t.iss.one/javascript_courses/3
9. Clean-Code-Javascript : https://github.com/ryanmcdermott/clean-code-javascript
10. free-programming-books : https://github.com/EbookFoundation/free-programming-books
Share with your friends ❣️
https://t.iss.one/webdevcoursefree
1. Web Developer-Roadmap : https://github.com/kamranahmedse/developer-roadmap
2. 30-Seconds-Of-Code : https://github.com/30-seconds/30-seconds-of-code
3. Awesome-Cheatsheets : https://github.com/LeCoupa/awesome-cheatsheets
4. CSS-Protips : https://github.com/AllThingsSmitty/css-protips
5. 33-JS-Concepts : https://github.com/leonardomso/33-js-concepts
6. You-Dont-Know-JS : https://github.com/getify/You-Dont-Know-JS/tree/2nd-ed
7. Front-End-Checklist : https://github.com/thedaviddias/Front-End-Checklist
8. Javascript-Questions : https://github.com/lydiahallie/javascript-questions
Javascript basics : https://t.iss.one/javascript_courses/3
9. Clean-Code-Javascript : https://github.com/ryanmcdermott/clean-code-javascript
10. free-programming-books : https://github.com/EbookFoundation/free-programming-books
Share with your friends ❣️
https://t.iss.one/webdevcoursefree
👍22❤3
Hard to believe most devs & designers still use JPG and PNG on the web.
Using .WEBP means:
• Smaller file sizes for all your images
• Faster page loading
• Ultra sharp quality
Make the switch.
Your websites will be as sharp as you want.
Using .WEBP means:
• Smaller file sizes for all your images
• Faster page loading
• Ultra sharp quality
Make the switch.
Your websites will be as sharp as you want.
👍44❤9
A simple way to create the carousel effect in CSS without any third party libraries 🥳
Two things are the core for this effect:
👉 Sticky positioning which allows the item to be fixed in place when scrolling the next item
👉 Scroll snapping (a new CSS feature) that automatically snaps an item to the edge of a scrollable container
Two things are the core for this effect:
👉 Sticky positioning which allows the item to be fixed in place when scrolling the next item
👉 Scroll snapping (a new CSS feature) that automatically snaps an item to the edge of a scrollable container
👍13❤5