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

Find the repeating and missing number in an array(C++)

By Prayas Sambhare

In this post, we are going to find the repeating and missing number in an array in C++. It is a famous question about array implementation. Let us understand the problem first. Und.... Read More

Solve Stock Span Problem in C++

By Prayas Sambhare

Hello! In this post, we will study the stock span problem with the help of the C++ program. Let us understand the problem first. You are given a list of ‘n’ daily price.... Read More

Accept a sentence and print only the first letter of each word in capital letters separated by a full stop using functions in Python

By Souhardya Ganguly

In this Python tutorial, you will learn how to accept a sentence and print only the first letter of each word of the sentence in capital letters separated by a full stop. We will i.... Read More

Using JavaScript Random in Different ways

By Vikneshwar GK

JavaScript Math.random() is a Math function that returns a random floating-point number between [0, 1) that is, including 0 but excluding 1. In this tutorial, we will see the diffe.... Read More