Number of n digit stepping numbers - space optimized solution

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

73 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 adjacent digits in such a way that they all have a difference of 1. For example, 321- each of the adjacent digits (3, 2, 1) have a difference of 1 consecutively. Here, we will be given the value of N and then we have to find the count of all ... Read More

Number of n digit numbers that do not contain 9

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

95 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 1-digit numbers which do not contain 9. So, these numbers are (0 – 8). There are in total 8 such numbers. Similarly, we have to find the count of N digit such numbers. Here, we will be given the value of N and then we have to find the count ... Read More

Number of mismatching bits in the binary representation of two integers

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

114 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 bits in the binary representation of two integers. Input Output Scenarios We are given two integers X and Y. The number of mismatching bits in their binary representation is the output. Input: X = 25, Y = 15 Output: 3 Input: X = 6, X = 19 Output: 3 ... Read More

Number of matches required to find a winner

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

172 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 ways to find the number of matches required to find a winner using C++. Understanding the Problem In a single elimination tournament, we have series of matches in which each team or player gets to compete with the other one. In each match, there are two teams or players. The ... Read More

What is the full form of SIP?

Shirjeel Yunus
Updated on 04-Jan-2024 18:00:19

66 Views

What is SIP? SIP can be expanded as Systematic Investment Plan. This is a method by which you can make investments in mutual funds. In this type of investment, you will have to choose a type of mutual fund and start investment as per the rules and regulations. The investment has to be made at fixed intervals. You can spend a small amount and get a high return. Types of SIP SIP is of many types and we will discuss some of them here. Fixed SIP This is a type of SIP in which investment has to be done at ... Read More

What is the full form of SIDBI?

Shirjeel Yunus
Updated on 04-Jan-2024 17:59:22

37 Views

What is SIDBI? The full form of SIDBI is Small Industries Development Bank of India. This bank is a subsidiary bank of IDBI. The bank was established under the special Act of the Parliament 1988. SIDBI has been developed for the administration of the National Equity Fund and Small Industries Development Fund. Previously, managing these two funds was the responsibility of IDBI. SIDBI is also responsible for the promotion, development, and finance of the MSME sector. MSME can be expanded as Micros, Small, and Medium Enterprise. SIDBI helps MSMEs to get the funds required for the growth, development, marketing, and ... Read More

What is the full form of NPA?

Shirjeel Yunus
Updated on 04-Jan-2024 17:58:09

39 Views

What is NPA? NPA can be expanded as Non-Performing Assets. It is a loan whose interest has not been paid for the past 90 days. An asset is termed as non-performing if it does not earn any revenue for a bank. An asset can be anything which can be used by banks to generate revenue. Loan is one of them as it brings income through a loan. If a company or an individual stops paying interest, it is called NPA. What is GNPA? GNPA can be expanded as Gross Non-Performing Assets. It is the total amount of all the ... Read More

What is the full form of MICR?

Shirjeel Yunus
Updated on 04-Jan-2024 17:56:30

56 Views

What is MICR? MICR can be expanded as Magnetic Ink Character Recognition. The technology was invented in the 1950s so that it can be checked whether the cheques are legal or not. Besides cheques, the validity of other documents can also be checked with the help of this technology. A special ink is used in this technology which is sensitive to magnetic fields. This technology is mostly used by banks and many other financial institutions. Retailers can also use the technology to check fraud. MICR Line The MICR line consists of a sequence of characters which is divided into three ... Read More

What is the full form of APK?

Shirjeel Yunus
Updated on 04-Jan-2024 17:52:35

88 Views

What is APK? The full form of APK is Android Application Kit. This is a file format that has been developed for the Android operating system. The data that an app needs to run is available in the APK file. The data included in an APK file are − Code of the application Resources Assets Android apps can be downloaded from Google Play Store or other sources and all of them use APK files to get installed. If users install and app through the Google Play Store, they will not see the APK files. If they use other ... Read More

What is the full form of PGDM?

Shirjeel Yunus
Updated on 04-Jan-2024 17:45:05

55 Views

What is PGDM? The full form of PGDM is Post Graduate Diploma in Management. Students who are unable to do MBA due to any reason can go for its alternative called PGDM. You can pursue the course after completing your graduation. Regular, part-time, and online courses are available and you can do any of them. Candidates have to score at least 50% marks in their graduation to pursue the course. Graduation can be done from a y stream. In order to get admission for a PGDM course, you will have to appear in any of the following entrance exams − ... Read More

Advertisements