DSA

how to become a 5 star coder at codechef

How to become a 5 Star Coder at CodeChef in 7 Easy Steps?

If you're a coder, then you know the importance of having a strong online presence. After all, coding is a highly competitive field, and employers are always looking for the best and brightest coders to fill their ranks. One way to make sure that you stand out from the crowd

Blog | Board Infinity
Blog | Board Infinity
Coding
Finding Array Triplets with Given Sum

Finding Array Triplets with Given Sum

Problem statement You are given an array and a target value. Your task is to determine if there exists a triplet that sums to the target value. If there exists such a triplet in the array then print the triplet and return true, otherwise return false. Some of the examples

Blog | Board Infinity
Blog | Board Infinity
Software Development
A Quick Guide to Breadth-First Search

A Quick Guide to Breadth-First Search

Introduction In this article, we will discuss the breadth-first search or bfs algorithm. The breadth-first search algorithm for graphs is similar to the breadth-first search algorithm for trees. The only difference is, since a graph may contain a cycle so we may encounter the same node again and again. To

Blog | Board Infinity
Blog | Board Infinity
DSA
megre sort a linked list

How to use Merge Sort with Linked Lists

Introduction Sorting is the process of putting items in order that may be either ascended or ascended. There are several sorting algorithms with varying temporal complexity that may be used to quickly arrange data. This post will teach us how to merge sort for linked lists. Problem statement for the

Blog | Board Infinity
Blog | Board Infinity
Software Development
Implementing Binary Search in C++

Implementing Binary Search in C++

Introduction The interval search algorithm family includes the binary search algorithm. Comparing this approach to the linear search algorithm, it is significantly more effective. Only sorted data structures can be used for binary search. The search space is divided in half and the centre of the sorted data structure is

Blog | Board Infinity
Blog | Board Infinity
DSA
How to sort a list in Java?

How to sort a list in Java?

Introduction The secret to transparent interviews with product-based organizations is data structure and algorithm. Java's List data structure is one of these crucial ones. In the post below, we'll talk regarding Java List Sort and methods to employ Collections Sort to sort lists in Java. List in Java In Java,

Blog | Board Infinity
Blog | Board Infinity
Software Development
Implementing Queue using Stacks

Implementing Queue using Stacks

Introduction The FIFO (First In First Out) principle, which dictates that insertion takes place from the back and deletion takes place from the front, is followed by the queue, a linear data structure. A linear data structure called a stack implements the LIFO (Last In First Out) principle, which states

Blog | Board Infinity
Blog | Board Infinity
Data Structure
A Quick Guide to Circular Linked List in C++

A Quick Guide to Circular Linked List in C++

What is a circular linked list in C++? Another data structure that improves on the linked list data structure is the circular linked list in C++. As we have learned, a linked list is a type of data structure in which each node has a link to the node after

Blog | Board Infinity
Blog | Board Infinity
DSA
find smallest/largest element in an array

How to find the kth smallest/largest element in an array?

Overview Given an unsorted array “arr”, find and print the “kth” smallest/largest element of the array. Scope * The method of sorting the array. * The method of using a min-heap data structure. * The method of using a max-heap data structure. By sorting the array Concept We can sort the given

Blog | Board Infinity
Blog | Board Infinity
DSA
A Quick Guide to Bubble Sort Algorithm

A Quick Guide to Bubble Sort Algorithm

Introduction In this article, we will learn about the bubble sort algorithm and its implementation with the help of examples. When two neighboring elements are compared and swapped until they are in the desired order, the sorting technique known as bubble sort is used. In each iteration, each element of

Blog | Board Infinity
Blog | Board Infinity
Software Development