Infix : An expression is called the Infix expression if the operator appears in between the operands in the expression. Simply of the form (operand1… Read More »

Prefix : An expression is called the prefix expression if the operator appears in the expression before the operands. Simply of the form (operator operand1… Read More »

In hashing there is a hash function that maps keys to some values. But these hashing function may lead to collision that is two or… Read More »

Given a string, convert the string to palindrome without any modifications like adding a character, removing a character, replacing a character etc. Examples: Input :… Read More »

Given a string s, find length of the longest prefix which is also suffix. The prefix and suffix should not overlap. Examples: Input : aabcdaabc… Read More »

1- WHAT IS INSTAGRAM? Instagram is one of the best social media platforms in today’s world. Most of the people use the Instagram every day… Read More »

Artificial intelligence is defined as study of rational agents. A rational agent could be anything which makes decisions, like a person, firm, machine, or software.… Read More »

When class member is a vector object (not a reference). We can simply assign in constructor. Output: 1 2 3 4 5 We can also… Read More »

We have given a large number now we can easily find out the factorial of this large number using boost multiprevision Library. Boost library has… Read More »

Let suppose a situation in which you have to read some specific data like phone numbers, email addresses, dates, a collection of words etc. How… Read More »

Given two strings s1, s2 and K, find the length of the longest subsequence formed by consecutive segments of at least length K. Examples: Input… Read More »

Given an array of size n and a positive integer k, find the maximum number of trailing zeros in the product of the subsets of… Read More »

Compiling graphics codes on CodeBlocks IDE shows an error: “Cannot find graphics.h”. This is because graphics.h runs is not available in the library folder of… Read More »

Given an integer n and an array of positions ‘position[]’ (1

Give a positive integer n, find modular multiplicative inverse of all integer from 1 to n with respect to a big prime number, say, ‘prime’.… Read More »

Given two numbers, the task is to use alternative bits within two numbers to create result. We take first bits of second number, then second… Read More »

Given a function random01Generator() that gives you randomly either 0 or 1, implement a function that utilizes this function and generate numbers between 0 and… Read More »

Given a string, count how many maximum-length palindromes are present.(It need not be a substring) Examples: Input : str = “ababa” Output: 2 Explanation :… Read More »

Round 1: The first round consisted of three coding questions to be solved in 1 hr – Given a string of size ‘n’. The task… Read More »

Given a string s that may have duplicate characters. Find out the lexicographic rank of s. s may consist lower as well as upper case… Read More »