Problem Statement: You are given a binary tree. Your task is to print the postorder traversal of the binary tree using just 1 stack. Example Consider the tree given below....
Problem statement In the Tower of Hanoi problem you are given three rods (“Source”, “Destination”, “Auxiliary”) and n disks. Initially, all the disks are stacked on the source rod in...
Cognizant is a multinational technology company based in the United States specializing in business consulting, information technology, and outsourcing. The company's headquarters are in Teaneck, New Jersey. Cognizant is a...
Problem Statment You are given a string. This string contains many words that are space separated. You have to reverse each word in the string individually. Examples The input string...
Arithmetic Expression An Arithmetic expression is a finite combination of arithmetic operands, operators and brackets. The common way of representing an arithmetic expression is by using infix notation. In infix...
Are you starting on a job hunt as a software developer? Or do you want to stand out among your college mates in campus interviews? No matter which is the...
1. What are the SDLC models present? Ans. Waterfall Model, Spiral Model, Big-bag model, Iterative Model, and V- Model are some of the famous SDLC models. 2. What are the...
Thousands of job seekers apply every year to Cisco where their skills are tested and thoroughly. Here we will be discussing some of the important questions that were commonly asked...
Concepts Used Binary Search Difficulty Level Easy Problem Statement : Finding a number has always been an interesting puzzle! Well in this problem we are given a sorted array of...
CONCEPTS USED: Recursion DIFFICULTY LEVEL: Easy PROBLEM STATEMENT (SIMPLIFIED): Rahul is stuck in a maze world, where the maze is a binary matrix of size NXM (each cell has value...
Concepts Used: Stack Difficulty Level: Medium. Problem Statement : Find the minimum number of replacements required to make the given string of braces balanced. See original problem statement here Example:...
Concepts Used Basic operations of stack. Difficulty Level: Hard. Problem Statement : Nikhil now got a job. His task is to evaluate files. His boss comes and puts a file...
Concepts Used Heap Difficulty Level Easy Problem Statement : Given an array arr[ ] and a number K where K is smaller than the size of the array, the task...
Concepts Used Sorting Difficulty Level Easy Problem Statement (Simplified): For a given array A, find the total number of elements you can pick in given capacity X. You can't pick...
Rambo Numbers Concepts Used Mathematics Difficulty Level Hard Problem Statement (Simplified): For given three numbers r,p,q. We have to find the total number of values divisible by r in a...