Simran Kumari has Published 24 Articles

Maximize a Value for a Semicircle of a given Radius

Simran Kumari

Simran Kumari

Updated on 24-Aug-2023 10:00:49

43 Views

What do understand by the question embedded in the title i.e Maximize a value for a semicircle of a given radius? The title `Maximize a value for a semicircle of a given radius` sounds unclear. Isn’t it? Let’s discuss what it means in the article below: According to the ... Read More

Swapping four Variables without a Temporary Variable

Simran Kumari

Simran Kumari

Updated on 23-Aug-2023 10:43:22

391 Views

By the title "Swapping four variables without a temporary variable, " What do you understand? Let's decode. Here the question is asking us to swap the values of four variables without creating any additional temporary variables. Using a temporary variable to hold one of the values temporarily in various programming ... Read More

Sum of Bitwise AND of all Possible Subsets of given Set

Simran Kumari

Simran Kumari

Updated on 23-Aug-2023 10:41:45

91 Views

What do you understand by the problem `Sum of bitwise AND of all possible subsets of given set`? Let’s decode. The problem is asking to find the sum of the bitwise AND of all possible subsets of a given set. Let’s try to understand the problem with an example. Suppose ... Read More

Squares of Numbers with Repeated Single Digits

Simran Kumari

Simran Kumari

Updated on 23-Aug-2023 10:40:22

52 Views

What is the question `Square of numbers with repeated single digits` asking us to do? Let’s decode! The problem "Squares of numbers with repeated single digits" aims to find the square of numbers like 33, 44, 555, etc which contains repeated single digits. Approach 1: Naive Approach We can use ... Read More

Segregate Even and Odd Numbers

Simran Kumari

Simran Kumari

Updated on 23-Aug-2023 10:39:10

405 Views

What do you understand by the title `Segregate even and odd numbers` ? Let’s decode. The goal of this problem is to separate the even and odd numbers in the input array while preserving the order of the elements, which means that the even numbers should remain in the same ... Read More

Reflection of a Point at 180-Degree Rotation of Another Point

Simran Kumari

Simran Kumari

Updated on 23-Aug-2023 10:37:13

80 Views

What do you understand by the heading `Reflection of a point at 180−degree rotation of another point`? Let’s decode it in this article. Let's assume we have two points (x1, y1) and (x2, y2) in a 2−D plane. Where (x2, y2) is the point of rotation and (x1, y1) ... Read More

Find the Maximum and Minimum Distance Between Magnets

Simran Kumari

Simran Kumari

Updated on 23-Aug-2023 10:18:35

85 Views

In this problem, we need to calculate the separation between two magnets that are attached to distinct pivots. We need to calculate the maximum and minimum distance between magnets i.e when the magnets attract and when they repel. The string's length between each magnet and the pivot is specified. Depending ... Read More

Dodecagonal Number

Simran Kumari

Simran Kumari

Updated on 23-Aug-2023 10:17:01

62 Views

What do you understand by the Dodecagonal number? In order to understand the Dodecagonal number, we first need to understand a dodecagon. What is a Dodecagon? A polygon with twelve sides and twelve angles is called a dodecagon. It is a two−dimensional geometric shape that may be created by joining ... Read More

Print the Fibonacci Sequence using 2 Variables

Simran Kumari

Simran Kumari

Updated on 23-Aug-2023 10:15:42

209 Views

What comes to your mind when reading the title? Here we need to calculate the Fibonacci sequence using only 2 variables. First, What is Fibonacci Sequence? The Fibonacci series is a set of numbers where each number is the sum of the two numbers before it. Any number after 0 ... Read More

Middle Term in the Binomial Expansion Series

Simran Kumari

Simran Kumari

Updated on 23-Aug-2023 10:13:51

78 Views

How can you determine the middle term in the binomial expansion series? The middle term in a binomial expansion series is determined by whether the expansion has an odd or even number of terms. The middle term is the (n+1)/2th term of the expansion if the number of terms is ... Read More

Advertisements