Taking a number and rearranging its digits in ascending order to form a new number in Python

By Souhardya Ganguly

In this Python tutorial, we will learn how to take a number and rearrange its digits in ascending order to form a new number. We shall be sorting the number using the sort() functi.... Read More

atol(), atoll() and atof() functions in C++

By Vishal Patil

Hello everyone, in this tutorial, we will learn about the atol() , atoll() and atof() functions available in C++. atol() function atol() function is used to convert string value in.... Read More

Convert a Vector to Set in C++

By Sonal Bera

In this tutorial, we try to convert a vector of elements into a set of elements in C++. Vectors in C++ are not new but are in fact containers similar to arrays that can expand or s.... Read More

Find a number repeating and missing in an array in Python

By HIMANSHU ZAVERI

In this post, we will find the number repeating and the number missing in an array in Python programming. You may encounter this problem in coding contests or competitive programmi.... Read More

Python Program to find the length of largest subarray with sum k

By Abinash Reddy

Given an array of integers, we are going to find the length of the largest subarray with sum k in Python. For example Input: arr[] = {2, 4, 5, 6, -3, 1} k = 12 Output: 4 Explanatio.... Read More

Using EJS Template Engine With Node.js and ExpressJs

By Sapna Rathod

What is EJS? EJS stands for Embedded JavaScript Templating is a templating language that lets you generate HTML markup and embed plain JavaScript into HTML files. EJS enables us to.... Read More

How to check if a given string is binary or not in C++

By Anurag Tiwari

In this tutorial, we will learn how to check if a given string is binary or not in C++. This problem can be considered as a subset of string problems in which we check for the pres.... Read More

Different ways to represent infinity in Python

By Yashwanth Guguloth

In this tutorial, we will learn the different ways to represent infinity in Python. Many of the times while solving different kinds of programming problems it is common practice to.... Read More