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

Separate characters, special characters and numbers from a string in JavaScript

By Samim

In this tutorial, We will see how to separate characters, special characters and numbers from a string in JavaScript. We can use regular expressions for this purpose. Using match().... Read More

Print array items without commas in Python

By Aakanksha Thakar

This tutorial will see how to print the array elements without commas in Python. Arrays are the data structures that store data of similar data type. Now to print the array element.... Read More

Left rotate an array by D places in Python

By Harsh Gupta

In this post, we will discuss some methods to left rotate an array by D places in Python. Left rotate an array by D places in Python You are given an array and value of D (number o.... Read More

How to check if a given string is sum-string in Python

By Suchita Sriramka

In this tutorial, we will see what is a sum-string and then a short code to check if the given string is a sum-string in Python. The rule to check if a string is sum string is pret.... Read More

Related Posts