Data structures, Design Patterns & Algorithms

📄 Table of contents

➤ Data Structures ( 8 commonly used ones)

➤ Algorithms

Design Patters in JS

What is a Data Structure?

Why do we need Data Structures?

8 Commonly used Data Structures

Arrays

Basic Operations on Arrays

Commonly asked Array interview questions

Stacks (LIFO)

Commonly asked Stack interview questions

Queues

Basic operations of Queue

Commonly asked Queue interview questions

Linked List

Basic operations of Linked List:

Commonly asked Linked List interview questions

Graphs

Commonly asked Graph interview questions

Trees

Commonly asked Tree interview questions

Trie

Hash Table

Commonly asked Hashing interview questions

Understanding Time Complexity with Simple Examples

◉ Searching Algorithms

🔘 Linear Search:

🔘 Binary Search:

◉ Sorting (BIHMQ)

🔘 Quicksort

🔘 Bubble Sort:

Bubble Sort
INSERTION SORT
MERGE SORT
QUICK SORT

Conclusion

Why Design Patterns?

🔘 Module Design Pattern:

(function () {
// declare private variables and/or functions
return {
// declare public variables and/or functions}
})();

Revealing Module Design Pattern:

var people = (function(){
var name = "anil kumar"
function sayName(){
alert(name);
}
return{
sayYourName: sayName
}
})();
alert(people.sayYourName());

🔘 Observer Design Pattern:

export default connect()(App);  #connect() is an inbuilt HOF.

🔘 Singleton Design Pattern:

🔘 Factory Pattern:

Factory Pattern template

Experience with Front-end Technologies and MERN / MEAN Stack. Working on all Major UI Frameworks like React, Angular.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store