set::emplace() in C++ with examples

By Vishal Patil

In this tutorial, we will learn about set::emplace() function available in C++. set::emplace() We will cover these: Basic function of set::emplace(). Syntax Few examples Actual imp.... Read More

Check if an array contains distinct elements in C++

By yaswanth vakkala

In this tutorial, we will learn to check if an array contains at least one duplicate element or if all of its elements are distinct. We will assume that all elements of the array a.... Read More

Find repeated characters in a string in Python

By Khushi Aswani

In this tutorial, we will look into how to find repeated characters in a string in Python, which is a beneficial task when talking about strings and their repetition. Most of the t.... Read More

How to download all image files from a web page in C++

By Paras Bhargava

In this tutorial, we are going to learn how to download all image files from a web page in C++. We will be using an api “wget”. Wget is a C++ program that retrieves con.... Read More

How to validate Roman Numerals using Regular Expression in C++

By Om Avhad

Hello friends, today we’ll be learning to validate Roman numerals using regular expressions. Firstly, the user will enter a string which and we will validate. Finally, we wil.... Read More

Get the last element from a vector in C++

By Mahak Chawla

In this tutorial, we will learn how to access the last element from a vector in C++. In C++, we can get the last element of the vector by using the following two methods: Using siz.... Read More

Get random n rows from a 2D array in C++

By Aakanksha Thakar

This tutorial will show you how to get the random n number of rows from a 2D array in C++. The 2D array is nothing but a matrix which have rows and columns. We will generate n rand.... Read More

Count Possible Decodings of a given Digit Sequence in Java

By Kamlendra Pratap Singh

Before moving on to the implementation let us have a look at the below example for better clarity. Examples Let us consider 'A' represents 1, 'B' represents 2, and so it goes on. I.... Read More