Learn Simpli

Free Online Tutorial For Programmers, Contains a Solution For Question in Programming. Quizzes and Practice / Company / Test interview Questions.

Data structure and algorithms
Data structures and algorithms

Algorithms

Algorithms Definition The set of rules to be followed in calculations is an algorithm, Problem-solving operation is an algorithm, These set of rules or instructions solve a class of problems Terms related to algorithms Every algorithm must satisfy the following properties, These properties can measure the effectiveness of the software,…

Data structures and algorithms

Set

Set What is set? Set is a collection of unique values A value in the Set may only occur once Write a code const setInstance = new Set() setInstance.add(2); setInstance.add(3); setInstance.add(2); setInstance.add(3); setInstance.has(1); setInstance.has(3); console.log(setInstance); // Set(2) { 2, 3 } Set operations Union: A set algorithm that compares 2…

Data structure - tree
Data structures and algorithms

Tree

[su_youtube url="https://youtu.be/2IhBtV2kYf8" title="Tree Data structure"] [su_youtube url="https://youtu.be/1vv2hHSxQMg" title="Properties of Tree Data structure"] [su_youtube url="https://youtu.be/k7fNwaBSTM0" title="Types of Tree Data structure"]   Tree What is a tree? A tree is a data structure that represents hierarchical data The nodes in the tree have a 1:N parent-child relationship Every tree has a root…

Data structure - queues
Data structures and algorithms

Queues

[su_youtube url="https://youtu.be/JagMrQMvWBk" title="Queue"] [su_youtube url="https://youtu.be/9aqkEoJO65o" title="Types of Queue"] Queues What are queues? The queues are First in First out (FIFO) data structures Its the opposite of stacks The printer is the best example of a queue Doubly ended queues Its a data structure which is both First in First out…