Given N = no of rows and M = no of columns, print the hollow pattern. ********** * * * * * * ********** Given above is an example of hollow pattern Read more →
C++ Programs
155 postsGiven a Singly Linked List. The task is to check if the characters in a node is vowel if yes then toggle the case of the vowel. Examples: Input : C-> p-> Read more →
Write a program to validate whether the brackets in the given input string are balanced or not. Examples: Input : {[()]} Output : Valid Input :{{(}}[] Output : Invalid Explanation: This problem Read more →
In this technological and digital age where everything is automated. We should prefer something which saves time and space and makes our work easy. Lucky for us C++ programmers, we have switch Read more →
You are given n commands. The task is to implement a stack that performs operations based on the following commands: push x: Push integer x onto the top of the stack. pop: Read more →
Two numbers: m and n are given. The size of these numbers is 32-bit long. You are also given two-bit positions: i and j. You have to set all bits between i Read more →
Programming has never been easier. Even though you may have mastered a particular programming language, there might still be some concepts that may make you dizzy on reading it. This article contains Read more →
Given, write a program that prints the Nth number whose sum of digits is 10. Examples: Input : 2 Output : 28 Explanation : the first number is 19, whose digit sum Read more →
Given a singly linked list. The task is to find the sum of all of the nodes of the given linked list which are divisible by a given number k. Examples: Input Read more →
A string contains ‘0’ and ‘1’.You have to find out whether the string is dangerous or not. The string will be dangerous in the following two conditions. There are at least 7 Read more →