## Special prime numbersNovember 20, 2017

Given two numbers n and k, find whether there exist at least k Special prime numbers or not from 2 to n inclusively. A prime… Read More »

## divmod() in Python and its application

The divmod() method in python takes two numbers and returns a pair of numbers consisting of their quotient and remainder. Syntax : divmod(x, y) x… Read More »

## Website Blocker Using Python

This is real world program which blocks certain distracting website like Facebook, Youtube etc during your work hours. About the program : What we are… Read More »

## Samsung Interview Experience | Set 33 (R & D Noida)

Round 1:3 hours online coding round 3 hrs were given to solve 1 programming question. 50 test cases were there. All the 50 test cases… Read More »

## Amazon Interview Experience | Set 414 (For SDET-1)

I applied through an employee referral for SDET-1 position. I was interviewed at Amazon Chennai(SP Infocity).I faced 5 face to face rounds. On October 11th,… Read More »

## Morgan Stanley Interview Experience | Set 35 (For Internship)

Morgan Stanley: Given two arrays A, B and a required array wanted. You are given 8 functions each with a fixed length (example functions 1.… Read More »

## Construct a distinct elements array with given size, sum and element upper bound

Given N size of the original array, SUM total sum of all elements present in the array and K such that no element in array… Read More »

## Convert string to char array in C++

Many of us have encountered error ‘cannot covert std::string to char[] or char* data type’. Examples: Input : string s = “geeksforgeeks” ; Output :… Read More »

## Convert to number with digits as 3 and 8 only

A charming number is a number which only consist 3 and 8 as its digits. We are given a n-digit number you have total of… Read More »

## Python dictionary, set and counter to check if frequencies can become same

Given a string which contains lower alphabetic characters, we need to remove at most one character from this string in such a way that frequency… Read More »

## Number of subarrays with maximum values in given range

Given an array of N elements and L and R, print the number of sub-arrays such that the value of the maximum array element in… Read More »

## Modular Exponentiation in Python

Given three numbers x, y and p, compute (x^y) % p Examples: Input: x = 2, y = 3, p = 5 Output: 3 Explanation:… Read More »

## Python String isalpha() and its application

In Python, isalpha() is a built-in method used for string handling. The isalpha() methods returns “True” if all characters in the string are alphabets, Otherwise,… Read More »

## fesetround() and fegetround() in C++ and their application

fesetround() It sets the specified floating point rounding direction or the “current rounding direction” which is expected to be one of the floating point rounding… Read More »

## Zoho Interview Experience | Set 27 (Off-Campus for Software Developer)

Round 1: Written test The first round comprised of 25 one mark questions (without options) from C output questions and puzzle & general aptitude questions… Read More »