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…