Riya Kumari has Published 74 Articles

Number of integral solutions for equation x = b*(sumofdigits(x) ^ a)+c

Riya Kumari

Riya Kumari

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

275 Views

Suppose you are given three integral numbers a, b and c and you have an equation x = b* (sumofdigits(x)^a) +c. Here, sumofdigits(x) is the total sum of all the digits in x. To find all the possible integral solutions which satisfy the equation, we will explore various approaches in ... Read More

Number of horizontal or vertical line segments to connect 3 points

Riya Kumari

Riya Kumari

Updated on 12-Jul-2023 12:31:43

277 Views

Suppose you are given three different points (or coordinates) and you want to find out number of horizontal or vertical line segments which can be made by connecting those three points. Such line segments together are also known as polyline. You need concepts of computational geometry in order to solve ... Read More

Number of handshakes such that a person shakes hands only once

Riya Kumari

Riya Kumari

Updated on 12-Jul-2023 12:29:47

343 Views

Suppose you are in a social gathering. Can you calculate how many handshakes you can do if you were to shakes only once? This question might sound intriguing to you. This can be solved mathematically by using permutations and combinations. However, the mathematical operation might be time-consuming. In this ... Read More

Number of elements greater than K in the range L to R using Fenwick Tree (offline queries)

Riya Kumari

Riya Kumari

Updated on 12-Jul-2023 12:28:27

386 Views

In the field of computer science, we have to process large datasets which includes query selection and update operations. It is a challenging task for the developers to execute these operations in real-time with less time complexity. Using Fenwick tree is an efficient way to tackle these range-based query ... Read More

Number of divisors of product of N numbers

Riya Kumari

Riya Kumari

Updated on 12-Jul-2023 12:26:49

456 Views

Divisor of a number is which divides it exactly without any remainders. In other words, a divisor of a number n is the one which results in n when multiplied by any other integer. It can also be called as a factor of a number. Dividend ÷ Divisor = Quotient. ... Read More

Number of divisors of a given number N which are divisible by K

Riya Kumari

Riya Kumari

Updated on 12-Jul-2023 12:24:02

377 Views

Finding the number of divisors of a given number N which is also divisible by K (any constant number) is a typical mathematical problem which requires lot of calculations. Here, K is usually a number which is less than or equal to square root of N. However, we can construct ... Read More

How to specify order of classes using CSS?

Riya Kumari

Riya Kumari

Updated on 02-May-2023 16:15:11

1K+ Views

Cascading Style Sheets (CSS) is a powerful component of web development which enables the developers to determine the visual appearance of their websites. In CSS, classes are used as selectors which enables us to apply several specific styles to an element. You can also use multiple classes for a particular ... Read More

How to create Paradoxical effect using CSS?

Riya Kumari

Riya Kumari

Updated on 02-May-2023 16:10:57

553 Views

The Paradoxical effect is a visual effect which is used to create optical illusion of any object, element or text that appears to move in a contradictory way. This effect can be used to add interesting and unique element to your web page. This can be easily created using ... Read More

What is the use of star-preceded property in CSS?

Riya Kumari

Riya Kumari

Updated on 02-May-2023 15:46:50

327 Views

In web development, CSS (Cascading Style Sheets) enables the developers to determine the visual appearance and layout of a website. However, since different web browsers have varying levels of support mechanism for CSS, it can result in inconsistency while rendering the web pages by the compiler. To overcome this compatibility ... Read More

Primer CSS Typography Type Scale Utilities

Riya Kumari

Riya Kumari

Updated on 28-Apr-2023 17:46:39

191 Views

Primer CSS is a CSS framework collectively developed by various GitHub contributors. One of its components is typography which enables the developers to style the written content of the website. By applying these utility classes to the HTML elements, we can easily customize the visual appearance of our application. Here, ... Read More

Advertisements