Riya Kumari has Published 75 Articles

C++ code to count local extrema of given array

Riya Kumari

Riya Kumari

Updated on 05-Jan-2024 16:17:29

454 Views

Extrema are such numbers which are either minima or maxima. In other words, it is a number or element which is either greater than or less than both of its adjacent values. Suppose we have an array A with n elements. An element of this array A[i] is called a ... Read More

Number of palindromic subsequences of length k where k <= 3

Riya Kumari

Riya Kumari

Updated on 05-Jan-2024 16:11:39

94 Views

Palindromes are series of letters, numbers or characters which have same starting and ending point. Also, they are same when read from left to right and right to left. A subsequence of a string is a new string which is made by removing some of the characters from the original ... Read More

Number of palindromic paths in a matrix

Riya Kumari

Riya Kumari

Updated on 05-Jan-2024 16:10:04

49 Views

Palindromic pathways are very useful in solving various problems involving patterns and sequences. It can be used in finding correct path in a maze without reversing, palindromes in a sequence of letters, etc., It can also be used to identify symmetric patterns and structures. In this article, we will discuss ... Read More

Number of palindromic permutations

Riya Kumari

Riya Kumari

Updated on 05-Jan-2024 16:08:18

30 Views

Permutations are possible in strings as well as numbers. A string can have permutations equal to the factorial of its number of characters. These permutations can be palindromic under certain circumstances. In this article, we will discuss about how palindromic permutations occur in a string. We will also find the ... Read More

Number of ordered pairs such that Ai & Aj = 0

Riya Kumari

Riya Kumari

Updated on 05-Jan-2024 16:04:48

30 Views

Suppose you are given an array and you have to find the total count of ordered pairs formed such that Ai & Aj = 0. You are given an array A[A1, A2, A3, …An]. You have to find ordered pairs of Ai and Aj such that their bitwise AND operation ... Read More

Number of n digit stepping numbers - space optimized solution

Riya Kumari

Riya Kumari

Updated on 05-Jan-2024 16:02:29

32 Views

In this article, we will learn about stepping numbers. We will find the possible number of n digit numbers which are also stepping numbers using several C++ techniques. We will also discuss about the most space optimized solution. Let’s first discuss about stepping numbers. These are such numbers which have ... Read More

Number of n digit numbers that do not contain 9

Riya Kumari

Riya Kumari

Updated on 05-Jan-2024 16:01:04

36 Views

Suppose you have a given number N. Now, you want to find those numbers of N digit which do not contain 9. This question can be solved by permutation and combination mathematically. In this article, we will find such numbers and count them using C++. Suppose you have to find ... Read More

Number of mismatching bits in the binary representation of two integers

Riya Kumari

Riya Kumari

Updated on 05-Jan-2024 16:00:02

21 Views

Binary language is the language of the computers. So, every integer, character or symbols needs to be converted into binary system and vice versa. There is binary representation to all high-level language. In this article, we will discuss about the binary representation of integers. Also, we will find the mismatching ... Read More

Number of matches required to find a winner

Riya Kumari

Riya Kumari

Updated on 05-Jan-2024 15:59:02

22 Views

Tournaments can be of various types- single elimination, double elimination, league etc., Suppose you are an organizer and you want to know about how many matches needs to conducted in order to conduct the tournament according to the rules of the game. In this article, we will discuss about different ... Read More

How to drop fill color to change the image color using HTML and CSS?

Riya Kumari

Riya Kumari

Updated on 20-Nov-2023 11:50:46

1K+ Views

In the world of web development, it's essential to have knowledge about the latest CSS and HTML techniques to add stunning visual effects to a website. One such effect is the "color drop effect, " which allows you to change the color of an image on hover by dropping a ... Read More

1 2 3 4 5 ... 8 Next
Advertisements