## How to implement Queue using Link List?

Hello Programmer, How are you doing? In this tutorial I will show you how to implement Queue using Link list. Prerequisite : You have to know What is the link list ? How It works? And algorithm of Queue. Well, I assume you are familiar of those prerequisites. Implement Queue using Array Well,Implement the Queue …

## How to implement Stack using Link List?

Hello Programmer, Are you afraid for link list ? In this tutorial I’ll show how to implement Stack using link list. A linked list is a linear collection of data elements whose order is not given by their physical placement in memory. I assume you know Stack’s algorithm.(Which I have told in my previous content [stack]) Well,Implement the Stack …

## What is queue in data structure?

A Queue is a linear structure which follows a particular order in which the operations are performed. The order is First In First Out (FIFO). A good example of a queue is any queue of consumers for a resource where the consumer that came first is served first. The difference between stacks and queues is in removing. …

## What is Stack in Data Structure?

Stack is a linear data structure which follows a particular order in which the operations are performed. The order may be LIFO(Last In First Out) or FILO(First In Last Out), for example – a deck of cards or a pile of plates, etc. A real-world stack allows operations at one end only. This feature makes it LIFO data structure. LIFO stands for …

## Greedy Algorithm | Fractional Knapsack Problem With Solution

What is Greedy Method Before discussing the Fractional Knapsack, we talk a bit about the Greedy Algorithm. Here is our main question is when we can solve a problem with Greedy Method?  Each problem has some common characteristic, as like the greedy method has too. Such as if a problem contains those following characteristic , then we can …

## What is an Algorithm?

An algorithm is a process or set of rules that how do you solve a problem. This can be a simple process, such as multiplying two numbers, or a complex operation, such as playing a compressed video file. In computer programming, algorithms are often created as a function. Algorithms are used for calculation, data processing, and automated reasoning