Vaishnavi Tripathi has Published 24 Articles

Undulating Numbers

Vaishnavi Tripathi

Vaishnavi Tripathi

Updated on 11-Apr-2023 16:59:26

152 Views

In this article, we will learn what an undulating number is and our approaches to check whether a given number is undulating or not using a boolean function to check undulating numbers. Problem statement We will be given a number and our task is to check whether the given number ... Read More

Smallest triangular number larger than p

Vaishnavi Tripathi

Vaishnavi Tripathi

Updated on 11-Apr-2023 16:20:27

196 Views

We will discuss triangular numbers and how we can find the smallest triangular number just larger than a given number “num”. We will first discuss what exactly is a triangular number and then will find out the smallest triangular number just larger than “num” We will see two different approaches ... Read More

Pandigital Product

Vaishnavi Tripathi

Vaishnavi Tripathi

Updated on 11-Apr-2023 16:19:20

152 Views

We are given two numbers and our task is to find out whether the given number is obtained by multiplying two other numbers such that all three numbers together constitute a 9-digit pandigital number. In other words, it can be said that we have to find out whether the given ... Read More

Minimum Adjacent Swaps Required to Sort the given Binary Array

Vaishnavi Tripathi

Vaishnavi Tripathi

Updated on 11-Apr-2023 16:06:50

403 Views

There are different approaches, we can use to minimize the number of swaps required on adjacent elements to get a sorted array. The given array as the output only contains two types of elements i.e., 0 and 1. We will discuss two different approaches to solve the problem in which ... Read More

Advertisements