The need for the computers is increasing day by day. Every person is becoming dependent on computers. If each person having computer has separate auxiliary devices then the cost of operating computers Read more →
Latest tutorials
505 postsBefore starting the software concepts, let us take a brief look into the components of computer. Components of Computer: A computer system has 3 components namely: Hardware, Software, and Users. These are Read more →
Given a list of elements p, the task is to convert the whole list into a list of sets. Examples: Input: p = ['apple', 'banana', 'cherry'] Output: [{‘apple’}, {‘banana’}, {‘cherry’}] Explanation : Read more →
We have to create an inverse triangle in the form of numbers (decreasing order). Example: If the user provide 5. The print 5, 5 times ; 4, 4 times and so on. Read more →
Given a number N, the task is to print all duplicate digits of that number in sorted order. Examples: Input: 123412989 Output : 3 4 8 Explanation : The unique digits are Read more →
Dynamic Programming is an algorithmic approach to solve some complex problems easily and save time and number of comparisons by storing the results of past computations. The basic idea of dynamic programming Read more →
Amanada, a school kid, is learning English alphabets. Her teacher devised a small game to make the task fun. A grid of ‘m’ rows and ‘n’ columns is filled with English alphabets. Read more →
There is question that what should we use void main() or int main() ? void main() { /* ... */ } Or, int main() { /* ... */ } In both language Read more →
Given a binary tree and two nodes a and b, the task is to print the maximum node value that lies in the path connecting the nodes a and b. If either Read more →
Backtracking is an algorithm that searches for possible combinations in order to solve computational problems. It is used for solving problems recursively by building increments and removing solutions that do not satisfy Read more →