Number of Integral Solutions for Equation x^b + SumOfDigits(x) = a + c

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

287 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 C++. Input Output Scenarios Given below are values of a, b and c. Different integral solution which satisfies the equation x = b* (sumofdigits(x)^a) +c is given as output. Input: a = 2, b = 2, c = -3 Output: 125, 447, 575 In the above scenario the ... Read More

Number of Horizontal or Vertical Line Segments to Connect 3 Points

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

298 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 this problem. In this article, we will discuss various approaches in C++ to tackle this problem. Input Output Scenarios Suppose c1, c2 and c3 are coordinates of 3 points in a cartesian plane. The number of horizontal or vertical line segments to connect these 3 points will be given as ... Read More

Number of Handshakes Such That a Person Shakes Hands Only Once

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

384 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 article, we will discuss how to solve such problem using C++. We will explore different approaches which ranges from mathematical formulas, to recursion, and other combinatorial techniques. Input Output Scenarios Suppose you have N number of people in a gathering. You want to calculate the number of handshakes possible ... Read More

Number of Elements Greater than K in Range L to R Using Fenwick Tree Offline Queries

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

415 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 problems. Fenwick Tree is a data structure which updates elements and calculates the prefix sums of the numbers in a table efficiently. It is also known as Binary Indexed Tree. In this article, we will discuss how to use Fenwick Trees for finding the number of elements greater ... Read More

Number of Divisors of Product of N Numbers

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

494 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. For example, if we divide 60 with 5 we will get 12 and vice versa therefore, 12 and 60 can be considered as divisors of 60. Number of Divisors of Product of N Numbers Given task is to find the number of divisors of the product of the given ... Read More

Google Calendar Alternatives

Shirjeel Yunus
Updated on 12-Jul-2023 12:26:39

237 Views

What is Google Calendar? Google Calendar is a service from Google which users can use to set reminders for their schedules, meetings, and other events. The tool is available for free and consists of a lot of features. Some of these features include Sharing calendars Switching from one view to another Users need to sign in through their Google account and they can work on Google Calendar from any device. You just have to click the menu and find the Calendar icon. Price Plans of Google Calendar Google Calendar provides a free trial for 14 days. After that, ... Read More

Number of Divisors of a Given Number n Divisible by k

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

390 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 a C++ program by which counting such numbers will be an easier task. In this article, we will discuss different methods in C++ using which we can find solution to the above given problem. Input Output Scenarios If we consider the below scenario here we have N value as ... Read More

Difference Between Thread ID and Thread Handle

Pradeep Kumar
Updated on 12-Jul-2023 12:21:03

807 Views

In multi−threaded programming, threads are lightweight units of execution that enable concurrent execution within a single process. Threads share the same memory space and resources of the process, allowing for efficient utilization of system resources. To work with threads, developers often need to distinguish between different threads and manage their execution. This is where the concepts of thread ID and thread handle come into play. In a multi−threaded programming environment, threads are independent units of execution within a process. Each thread has its own unique identifier and a corresponding handle that can be used to manipulate and manage the thread. ... Read More

Difference Between Turnaround Time (TAT) and Waiting Time (WT) in CPU Scheduling

Pradeep Kumar
Updated on 12-Jul-2023 12:15:34

2K+ Views

CPU scheduling is a crucial aspect of operating systems that determines the order in which processes are executed on the central processing unit (CPU). Two important metrics used to evaluate the efficiency of CPU scheduling algorithms are Turn Around Time (TAT) and Waiting Time (WT). Understanding the difference between these two metrics can provide insights into the performance and responsiveness of a CPU scheduling algorithm. What is Turn Around Time (TAT)? Turn Around Time (TAT) is the total time taken for a process to complete its execution from the moment it enters the system until it finishes. It includes both ... Read More

5 Deep Learning Project Ideas for Beginners

Priya Mishra
Updated on 12-Jul-2023 12:09:03

501 Views

Deep learning has emerged as a major area of study for academics and developers as industry continue to embrace the possibilities of artificial intelligence. Deep learning is a branch of machine learning that focuses on the structure and operations of the human brain in order to create algorithms that can recognise patterns and predict outcomes. In this article , we will look at 5 deep learning project ideas for beginners that are simple to implement and provide practical insights into the area of deep learning. Who can Benefit from this Article? This article is intended for newbies who are interested ... Read More

Advertisements