Sunil MajhiFactory Design PatternThis design pattern is used for creating multiple objects. Factory design pattern enables us to create objects in a centralized manner.1 min read·Jan 23, 2024----
Sunil MajhiThe D of SOLID PrincipleThe last principle, “D,” is the Dependency Inversion Principle. This principle holds that high-level modules, i.e., the modules that…1 min read·Jan 20, 2024----
Sunil MajhiThe O of SOLID PrincipleThe second SOLID principle is the open-closed principle. Its official definition holds that software entities (classes, modules, functions…1 min read·Jan 20, 2024----
Sunil MajhiMerge two sorted arraysTo implement merge sort, it’s useful first to implement a function responsible for merging two sorted arrays.2 min read·Jan 4, 2024----
Sunil MajhiInsertion Sort Algoritand its JS ImplementationBuilds up the sort by gradually creating a larger left half which is always a sort.1 min read·Dec 31, 2023----
Sunil MajhiSelection Sorting Algorithm and its JS implementationIt is similar to bubble sort, but instead of first placing a large value into a sorted position, it places the small values into a sorted…1 min read·Dec 30, 2023--1--1
Sunil MajhiBubble Sort algorithm and It’s JS implementationA sorting algorithm where the largest value bubbles up to the top1 min read·Dec 29, 2023----