Farhan Muhamed has Published 128 Articles

C++ code to find maximum fruit count to make compote

Farhan Muhamed

Farhan Muhamed

Updated on 31-Jul-2025 17:02:43

562 Views

In this article, we will explain maximum fruit count to make compote problem and implement a C++ program to solve it. The problem involves finding the maximum number of fruits that can be used to make a compote, given certain constraints. Let's break down the problem statement below. Maximum ... Read More

C++ Program to Find Path Between Two Nodes in a Graph

Farhan Muhamed

Farhan Muhamed

Updated on 30-Jul-2025 15:36:29

858 Views

In this article, we will learn how to find a path between two nodes in an undirected graph and implement it in C++. We will represent graph as an adjacency list and use a depth-first search (DFS) algorithm to find the path. We already discussed finding a path between two ... Read More

C++ code to decrease even numbers in an array

Farhan Muhamed

Farhan Muhamed

Updated on 30-Jul-2025 15:33:44

296 Views

An array is a group of similar elements stored together in a single variable which take contiguous memory locations. Arrays help us to store and manage multiple values of the same type, like a list of numbers or names.In this article, we will solve a beginner level problem in C++ ... Read More

Find if there is a path between two vertices in a directed graph

Farhan Muhamed

Farhan Muhamed

Updated on 30-Jul-2025 15:31:43

1K+ Views

A directed graph is a graph where the edges specify a direction from one vertex to another. In this article, we will learn how to find a path between two vertices in a directed graph and implement C++ code to achieve this. To determine if there is a path between ... Read More

Adjusting the heights of individual subplots in Matplotlib in Python

Farhan Muhamed

Farhan Muhamed

Updated on 25-Jul-2025 17:00:06

1K+ Views

The matplotlib is a library in Python that allows us to create graphs and plots for data visualization. This library provides several functions to adjust the height, width, and other layout properties of individual subplots in a figure. In this article, we will learn how to adjust the heights of ... Read More

Adjusting Text background transparency in Matplotlib

Farhan Muhamed

Farhan Muhamed

Updated on 25-Jul-2025 16:59:45

4K+ Views

The matplotlib is a library in Python that allows us to create graphs and plots for data visualization. This library have several built-in functions to style the plots, such as changing colors, adding titles, setting backgrounds, labels, and adjusting the layout of subplots. In this article, we will learn how ... Read More

Array Transformation in C++

Farhan Muhamed

Farhan Muhamed

Updated on 25-Jul-2025 16:59:14

618 Views

Array transformation is a popular coding question asked in technical assessments and interviews. In this article, we will discuss the problem of array transformation with example testcases, the algorithm to solve it, and provide a C/C++ implementation. Array Transformation Based on Local Maxima and Minima In this problem, you ... Read More

C++ Array of Strings

Farhan Muhamed

Farhan Muhamed

Updated on 21-Jul-2025 19:04:39

20K+ Views

A string is a sequence of characters used to store information as text. In C++, strings are represented as array of characters using the std::string class. In this article, we will learn what is an array of strings in C++, how to declare and initialize it, and how to access ... Read More

Array Manipulation and Sum using C/C++

Farhan Muhamed

Farhan Muhamed

Updated on 21-Jul-2025 19:00:29

2K+ Views

In this problem, you are given an integer array arr of size n and an integer S. Your task is to find an element k in the array such that if all the elements greater than k in the array are replaced with k, then the sum of all the ... Read More

Array product in C++ using STL

Farhan Muhamed

Farhan Muhamed

Updated on 21-Jul-2025 18:54:59

289 Views

The product of an array refers to the multiplication result of all the elements in the array. The STL library of C++ provides several built-in functions to quickly calculate product of an array. In this article, we will explain all those STL functions with examples. Consider the following ... Read More

1 2 3 4 5 ... 13 Next
Advertisements