Riya Kumari has Published 74 Articles

Number of ordered pairs such that Ai & Aj = 0

Riya Kumari

Riya Kumari

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

361 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

202 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

229 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

391 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

541 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

Number of isosceles triangles in a binary tree

Riya Kumari

Riya Kumari

Updated on 12-Jul-2023 12:42:37

165 Views

A binary tree is a data structure in which each node can have two children (at most). These children are known as left and right child respectively. Suppose we are given a parent array representation using which you have to a create a binary tree. The binary tree may have ... Read More

Number of full binary trees such that each node is product of its children

Riya Kumari

Riya Kumari

Updated on 12-Jul-2023 12:41:11

138 Views

A full binary tree is a special type of binary tree in which all the parent nodes either have two or no children. In data structures, these kinds of trees are considered as balanced and organized representation. Full binary trees may have a unique feature where each of the parent ... Read More

Number of jumps required for a thief to cross walls

Riya Kumari

Riya Kumari

Updated on 12-Jul-2023 12:39:56

294 Views

Imagine a prisoner (or thief) wants to escape from a jail. In order to do so, he needs to cross N number of walls of varying lengths. He can climb X feet for each jump. But, since the walls are slippery, he falls down by Y feet after each jump. ... Read More

Number of jumps required of given length to reach a point of (d, 0) from origin in 2D plane

Riya Kumari

Riya Kumari

Updated on 12-Jul-2023 12:35:08

141 Views

In this article, we will discuss the possible solution of an exciting analytical question of how many jumps are required to reach a point (d, 0) from the origin in a 2D plane where you have been specified fixed length of jumps. We will use the fixed length of jumps ... Read More

Advertisements