C++

Insertion Sort | Sahil Rawat | SKB Development

Insertion Sort

Insertion Sort is a simple sorting algorithm that builds the final sorted array one item at a time. It is much less efficient on large lists than more advanced algorithms such as quicksort, heapsort, or merge sort. However, it is often used in practice for its simplicity and low overhead. Here’s a basic description of […]

Insertion Sort Read More »

Buuble Sort | Sahil Rawat | SKB Development

What is Bubble Sort

Bubble Sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements, and swaps them if they are in the wrong order. The pass through the list is repeated until the list is sorted. The algorithm gets its name because smaller elements “bubble” to the top of the list. Here’s a

What is Bubble Sort Read More »

Queue Data Structure | Sahil Rawat

Queue Data Structure

A Queue is defined as a linear data structure that is open at both ends and the operations are performed in First In First Out (FIFO) order. FIFO Principle of Queue Characteristics of Queue Data Structure Queue Representation Like stacks, Queues can also be represented in an array: In this representation, the Queue is implemented using the

Queue Data Structure Read More »

Struct in C++ | Sahil Rawat

Struct in C++

C++ arrays allow you to define variables that combine several data items of the same kind, but struct is another user defined data type which allows you to combine data items of different kinds. Structures are used to represent a record, suppose you want to keep track of your books in a library. You might want to

Struct in C++ Read More »

Introduction of C++

Introduction of Cpp

In this introduction we learn about Cpp. It is a general-purpose programming language that was developed as an enhancement of the C language to include Object Oriented Programming (OOPs). It is an imperative and a compiled language. History of C++ This Language was developed by Bjarne Stroustrup at bell labs in 1979. The problem arose that C could not

Introduction of Cpp Read More »