# Category Archives: Interview Questions

## Chocolate Feast Problem

By | June 10, 2021

Little Bobby loves chocolate. He frequently goes to his favorite 5 & 10 store, Penny Auntie, to buy them. They are having a promotion at Penny Auntie. If Bobby saves enough wrappers, he can turn them in for a free chocolate. Example n = 15 c = 3 m = 2 Answer 5 + 2… Read More »

## Interview Question – 12 – Bon Appétit

By | November 15, 2018

## Breaking Records – Problem Solving Question & Answer

By | November 2, 2018

## Interview Question & Answers – Migratory Birds Count – 11

By | October 21, 2018

Question You have been asked to help study the population of birds migrating across the continent. Each type of bird you are interested in will be identified by an integer value. Each time a particular kind of bird is spotted, its id number will be added to your array of sightings. You would like to… Read More »

## Interview Question & Answer – 10 – Divisible Sum pairs

By | October 21, 2018

Question Find the count where the number k is divisible by sum of two numbers in the array and first number index should be less than second number index. Function has the following parameter(s): n: the integer length of array ar: an array of integers k: the integer to divide the pair sum by You… Read More »

## Interview Question – 9

By | October 13, 2018

Question Maria plays college basketball and wants to go pro. Each season she maintains a record of her play. She tabulates the number of times she breaks her season record for most points and least points in a game. Points scored in the first game establish her record for the season, and she begins counting… Read More »

## Interview Question & Answer – 9

By | October 4, 2018

Question Given a time in -hour AM/PM format, convert it to military (24-hour) time. Note: Midnight is 12:00:00AM on a 12-hour clock, and 00:00:00 on a 24-hour clock. Noon is 12:00:00PM on a 12-hour clock, and 12:00:00 on a 24-hour clock. Sample Input 07:05:45PM Sample Output 19:05:45 Solution

## Interview Question & Answer – 8

By | October 3, 2018

Question You are in charge of the cake for your niece’s birthday and have decided the cake will have one candle for each year of her total age. When she blows out the candles, she’ll only be able to blow out the tallest ones. Your task is to find out how many candles she can… Read More »

## Interview Question & Answer – 7

By | October 3, 2018

Question Write a recursive program to count the number of “a”s in a string. Solution

## Interview Question & Answer – 6

By | September 30, 2018

Question Given a square matrix, calculate the absolute difference between the sums of its diagonals. For example, the square matrix is shown below: 1 2 3 4 5 6 9 8 9 Ans : | (1+5+9) – (3+5+9) | = 2. Solution

## Interview Question & Answer – 5

By | September 30, 2018

Question Alice and Bob each created one problem for our company. A reviewer rates the two challenges, awarding points on a scale from to for three categories: problem clarity, originality, and difficulty. We define the rating for Alice’s challenge to be the triplet , and the rating for Bob’s challenge to be the triplet .… Read More »

## Interview Question & Answer – 4

By | September 29, 2018

Question Lilah has a string, , of lowercase English letters that she repeated infinitely many times. Given an integer, , find and print the number of letter a’s in the first letters of Lilah’s infinite string. For example, if the string and , the substring we consider is , the first characters of her infinite… Read More »

## Interview Question and Answer – 3

By | September 29, 2018

Question Emma is playing a new mobile game that starts with consecutively numbered clouds. Some of the clouds are thunderheads and others are cumulus. She can jump on any cumulus cloud having a number that is equal to the number of the current cloud plus or . She must avoid the thunderheads. Determine the minimum… Read More »

## Interview Question and Solution – 2

By | September 28, 2018

Gary is an avid hiker. He tracks his hikes meticulously, paying close attention to small details like topography. During his last hike he took exactly steps. For every step he took, he noted if it was an uphill, , or a downhill, step. Gary’s hikes start and end at sea level and each step up… Read More »

## What is IL/MSIL/CIL and JIT in .NET ?

By | May 28, 2012

IL is Intermediate Language IL is also known as MSIL (Microsoft Intermediate Language) or CIL (Common Intermediate Language) JIL – IL is converted into machine code by Just-In-Time (JIT) compiler