Farhan Muhamed

Farhan Muhamed

No Code Developer, Vibe Coder

About

Professional Technical Content Writer, SEO Analyst and Software Developer specialized in web development and DSA in C++, Python.
Drop your queries and messages here: x.com/farhan

101 Articles Published

Articles by Farhan Muhamed

Page 10 of 11

How to concatenate a std::string and an int in C++?

Farhan Muhamed
Farhan Muhamed
Updated on 22-Apr-2025 3K+ Views

Concatenate a string and an integer means, convert both the string and integer to a single string. In this article we will discuss all the approches to concatenate a std:string and an integer type using C/C++ program. First of all, let's understand the problem statement. We are given a standard c++ string and an integer. We have to output a single string by combining the given string and integer. For example: // Input String and Integer "Value = " 25 // Output String "Value = 25" Concatenate String and Int in C++ Here is the list ...

Read More

How to concatenate multiple C++ strings on one line?

Farhan Muhamed
Farhan Muhamed
Updated on 22-Apr-2025 1K+ Views

Sting Concatenatination is the process of creating a single string from multiple strings by combining them all together. In this article, we will discuss all approaches to concatenate multiple strings using C/C++ program. First of all, let's understand the problem statement. A set of C++ strings are given as input. We need to output a single string which is concatenate of the strings provided. For example: // Input Strings "Value " "is " "Big" // Output String "Value is Big" Concatenate Multiple Strings to Single Line Here is the list of approaches ...

Read More

Extract all integers from string in C++

Farhan Muhamed
Farhan Muhamed
Updated on 18-Apr-2025 7K+ Views

In this article, we will discuss how to extract all the integers from a string using C++ program. We will explore all the possible approaches to do so. First of all, let's understand the problem statement. We have a string that contains a mix of digits and non-digits. We need to extract all the integers from the string and store them in a vector. The integers can be positive or negative. For example, // Input String string str = "ab24wj-123fow" // Output Vector vector vec = {24, -123} Approaches to Extract Integers from String ...

Read More

Case-insensitive string comparison in C++

Farhan Muhamed
Farhan Muhamed
Updated on 17-Apr-2025 9K+ Views

To compare two strings in C++, we can use various inbuilt functions and approaches that are already discussed in the previous sections. However, there are some cases where we need to compare two strings case-insensitively, meaning that we need to ignore the case of the characters in the strings while comparing them. In this article, we will focus on learning how to compare two strings case-insensitively in C++. Here is a list of approaches for case-insensitively string comparison, which we will be discussing in this article with stepwise explanation and complete example codes. ...

Read More

Check if a string contains a sub-string in C++

Farhan Muhamed
Farhan Muhamed
Updated on 17-Apr-2025 8K+ Views

A substring is a continues sequence of characters within a larger string. For example, the string "point" a substring of the string "TutorialsPoint". In this article, we will learn different approaches to check if a string contains a substring in C++. Here is a list of approaches for checking if a string contains a substring, which we will be discussing in this article with stepwise explanation and complete example codes. Using find() Using search() Using regex_search() Manual Substring ...

Read More

C++ Program to Check the Connectivity of Directed Graph Using BFS

Farhan Muhamed
Farhan Muhamed
Updated on 15-Apr-2025 940 Views

The Breadth-First Search (BFS) algorithm is a graph traversal algorithm that starts at the tree root and explores all nodes at the present depth before moving to the nodes at the next level. In this article, we will discuss how to check the connectivity of a directed graph using BFS traversal algorithm. Understanding Connectivity of a Graph A graph is said to be connected if there is a path between every pair of vertices. To check connectivity of a graph, we will try to traverse all nodes using any traversal algorithm. After completing the traversal, if there is any ...

Read More

How to clear complete cache data in ReactJS?

Farhan Muhamed
Farhan Muhamed
Updated on 29-Nov-2024 1K+ Views

Caching is a technique used to store reusable resources in the user's browser. Caches are of different types, for example, Local Storage Cache, Session Storage Cache, and Service Worker Cache, each of these has a different approach to clearing completely from browser. In this article, we will explain how to clear all caches in a React app. What is Cache? Caches are temporarily stored resources on a web page such as variables, user preferences, images, style sheets, scripts, etc. These are used to reduce server load and speed up page load times by reusing previously fetched resources. Following ...

Read More

What is prop drilling and how to avoid it?

Farhan Muhamed
Farhan Muhamed
Updated on 29-Nov-2024 453 Views

Prop Drilling is a common mistake beginners make while building React apps. It can cause reduced code readability and even performance issues for the app. In this article, I will explain what are props, prop drilling, and how to avoid prop drilling using context APIs. Table of Content What are Props? Prop Drilling Why to Avoid Prop Drilling? Fix Prop Drilling With Context API Prerequisites Good knowledge of React, useState Hook, and useContext Hook. ...

Read More

How to parse JSON Data into React Table Component?

Farhan Muhamed
Farhan Muhamed
Updated on 27-Nov-2024 729 Views

JSON files are used in APIs to transfer data from server to client in the form array. This transferred data needs to be displayed in the user interface, such as in tables or any other components. In this article, we will demonstrate how to display JSON data using a React Table. Prerequisites To display a JSON file in React.js, we need to have a basic understanding of the React.js library. Basic knowledge of React, useState Hook, and useEffect Hook. Ensure Node.js and React are installed on your system. ...

Read More

How to create an unique id in ReactJS?

Farhan Muhamed
Farhan Muhamed
Updated on 27-Nov-2024 724 Views

Unique IDs are used to differentiate multiple elements from each other, maintain the internal state of components, or create a key for user data. In this article, we will explain all the approaches to creating unique IDs for a set of elements in React JS. Approaches to Create Unique ID in React JS Here is the list of approaches for creating unique IDs in React JS, which we will be discussing in this article with stepwise explanations and complete example codes. Using uuid Library Using Timestamps ...

Read More
Showing 91–100 of 101 articles
« Prev 1 7 8 9 10 11 Next »
Advertisements