# C++

## Tower Of Hanoi In C [SOLVED]

In this article, we will implement the solution to the classical problem of Tower Of Hanoi using the C programming language. What is Tower of Hanoi? Tower of Hanoi is a mathematical puzzle where we have three rods and n disks. The objective of the puzzle is to move the entire stack to another rod, …

## Sort Linked Lists Using C++ [With Easy Examples]

In today’s article, we’ll learn to sort linked lists using C++. Just like other data structures, there are times when we need to sort a linked list, and today we’ll see how are we gonna do that. You must be aware of the presence of multiple sorting algorithms to sort data structures. Today we’ll implement …

## Fibonacci Series Using Dynamic Programming in C++

In this article, we will find the Fibonacci Series using the dynamic programming approach. Fibonacci Series is very popular among mathematicians and there are many natural phenomena revolving around this series. So without wasting any time let’s jump to a brief introduction to the Fibonacci Series. What Is A Fibonacci Series? It is a very …

## The scanf() function in C – Accepting user input in C

Hey, all. In this article, we will be focusing on the scanf() function in C in detail. Working of the scanf() function in C Be it any programming language, we always need user input, in order to make it work with a dynamic set of values. This is where the scanf() function in C comes …

## Minimum Cost Path Using Dynamic Programming in C++

Today, we’ll learn to solve the problem of finding the minimum cost path using dynamic programming in C++. It’s a popular dynamic programming problem on LeetCode, CodeForces, and CodeChef. Dynamic programming is a great choice to solve the minimum cost path and maximum cost path problems. So without wasting time, let’s get started. Problem Statement …

## Kingdom Defence Problem Using C++

Today, we’ll learn to solve the kingdom defense problem using C++. It is a very popular problem from SPOJ(Sphere Online Judge). This problem also goes by the name DEFKIN. This has already been asked about during many coding competitions. We’ll learn to solve this problem most efficiently. Let’s go through the problem statement. Also read: …

## Wines Problem Using Dynamic Programming In C++

Today, we’ll learn to solve Wines Problem using dynamic programming C++. It’s a dynamic programming problem. Dynamic programming is one of the most difficult topics of DSA. We’ll learn to solve this problem using the concept of dynamic programming. Let’s get started. Also read: Greedy Problem Expedition Using C++ Problem Statement for Wines Problem You …

## Robot And Paths Problem Using Dynamic Programming in C++

Today, we’ll learn to solve robot and paths problem using dynamic programming in C++. It’s a popular dynamic programming problem on CodeChef. Dynamic programming is a great way to solve problems that revolve around paths. So without wasting time, let’s get started. Problem Statement for Robot And Paths Problem Given a grid of size (M …

## Optimal Game Strategy Problem Using C++

Today, we’ll learn to solve the optimal game strategy problem using C++ and dynamic programming. It’s a popular dynamic programming problem on LeetCode. Dynamic programming is one of the toughest concepts of data structures and algorithms. So without wasting time, let’s get started. Also read: Friends Pairing Problem Using Dynamic Programming In C++ Problem Statement …

## Greedy Problem Expedition Using C++

Today, we’ll learn to solve the greedy problem expedition using C++. It is one of the most popular problems from SPOJ(Sphere Online Judge). This problem also goes by the name EXPEDI on various other coding platforms. This has already been asked about during many coding competitions. We’ll learn to solve this problem most efficiently. Let’s go through …