
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 7197 Articles for C++

116 Views
C compiler treats a string as an array of characters, so it is easy to remove characters of a string based on their position. The first and last position of the string have to be checked for the presence of parenthesis and have to be removed. The string can be copied into another variable and presented. There are many predefined functions in C that can be used effectively to manipulate strings. Removing a character from the starting or ending position is easily achieved in C with the help of the functions. Removing starting and ending paranthesis from string ... Read More

153 Views
The title "Count of primes after converting given binary number in base between L and R" refers to a math problem that involves converting a binary number into a base between L and R and then counting the number of prime numbers that come from the conversion. In math, a prime number is a whole number that is greater than 1 and can only be divided by 1 and itself. To turn a binary number into a number with a different base, the number has to be written in a different number system. The number system's base is the number ... Read More

3K+ Views
The government issues a unique identification number known as a GST number to businesses and individuals who have registered for GST. As part of the validation procedure, the GST number is checked for correctness and legitimacy. The format of the number is frequently checked during the verification process to make sure it is correct and conforms to the format needed by the tax authorities of the relevant country. In order to confirm the validity of the number and that it belongs to the person seeking it, the verification phase may also involve cross-referencing it with the database of the tax ... Read More

139 Views
The node with the greatest degree within the Prufer grouping is the one that appears most often within the grouping. To discover it, we emphasise it through grouping and keep track of the frequencies of each hub. Once we have the frequencies, we select the hub with the most noteworthy recurrence as the hub with the maximum degree. This hub speaks to the leaf within the labelled tree. The Prufer grouping may be a one-of-a-kind representation of a labelled tree, where the maximum degree hub compares to the leaf that's included final amid the development preparation. By distinguishing this hub, ... Read More

106 Views
To print the degree of each hub from a given Prufer arrangement, ready to emphasise through the arrangement and tally the events of each node. By following the recurrence of each node, we will determine the degree of that hub within the corresponding labelled tree. This data gives insights into the network and structure of the tree. By printing the degree of each hub, you are ready to analyse the conveyance and distinguish imperative hubs. This examination makes a difference in understanding the properties and characteristics of the initial tree based on the Prufer arrangement representation. Methods Used Frequency ... Read More

132 Views
The number of trees with a given whole number of degrees, L, can be decided by an equation based on the chart hypothesis. To begin with, we note that the whole number of degrees in a tree with N vertices is continuously 2N-2. Utilising this, we are able to calculate the number of clears out within the tree, which is L minus 2. Another way is to determine the number of inner vertices by subtracting the number of takeoffs from the overall number of vertices. At long last, we were able to discover the number of ways to disseminate the ... Read More

219 Views
In a graph, the most extreme number of hubs that can be reached from each hub depends on the structure and network of the chart. This value is determined by the number of active edges on each hub. In an undirected chart, each hub can reach all the hubs associated with it specifically, with the most extreme number of reachable hubs rising to the number of adjoining hubs. In a coordinated chart, the most extreme number of reachable hubs may shift for each hub, depending on the outdegree of each hub. The most noteworthy conceivable number of reachable hubs from ... Read More

156 Views
This article explains the perplexing process of finding two totally partitioned sets of vertices inside a given chart using a convoluted calculation. The substance of the calculation lies within the idea of chart colouring, wherein colours are efficiently relegated to vertices, guaranteeing that no adjoining vertices share the same colour. By taking this overly complex approach, the calculation shrewdly builds two dissimilar sets of vertices, each comprising vertices bearing particular colours. The paramount objective is to set up a clear boundary between these sets, rendering them void of any interconnection edges. The technique utilised encompasses a combination of strenuous methods, ... Read More

147 Views
Finding K vertices in the network that are connected to at least one of the remaining vertices may be done using DFS (Depth-First Search). Your beginning point should be one of the remaining vertices, and you should then perform a DFS on that vertex. Each vertex you come across while conducting the search will be noted, and it will be added to the group of similar vertices. Once K vertices have been located or all remaining vertices have been searched, keep repeating this. DFS aids in completing the assignment by carefully exploring the graph to find the K vertices that ... Read More

127 Views
To number the nodes of a tree that, when concatenated with their sub-tree hubs, shape a pangram, follow these steps: Begin at the root hub and navigate the tree in a depth-first way. At each hub, concatenate its value with the values of its sub-tree hubs. Check in case the coming string may be a pangram (contains all the letters of the letter set). On the off chance that it is, increase the tally. Recursively investigate the sub-tree hubs. At long last, return the number of hubs that fulfil the pangram condition. This approach guarantees that each hub within the ... Read More