Populate an array of numbers from 1 to N (inclusive). Given two numbers, p and q , if a number in the array is divisible by p print OUT, if a number is divisible by q print THINK. If number is divisible by both p and q, print OUTTHINK. Otherwise, print the number.
Software Engineer Interview Questions
466,538 software engineer interview questions shared by candidates
4.Write a C/C++ program to print the pattern for the given value N. For example N=5 55555 45555 43555 43255 43215 54321
I have superclass A and subclass B of superclass A. B overrides a function foo() in A. I have an instance of class B. How do I call foo() but using class A's version
Not difficult. It is like why can not compare two strings. And how to compare one object which initialed as a string with string. The coding quesition is to find the kth in two sorted arrays.
Asked to write a function to determine if numbers were a power of X.
Given a string input, create a function that will output a compressed version of the string. E.g. Input = "AAABBZZDDD", Output = "A3B2Z2D3"
write a function that receives a dictionary and a string and return true if the string is built of exactly two words in the dictionary
Difficult to answer in short and first time attempt.
find a way to separate money into n parts. For example, if total money is 121, find a way to separate 121 into 4 closest parts and the solution would be an array with elements 30, 30, 30, 31
What sort would you use if you had a large data set on disk and a small amount of ram to work with?
Viewing 581 - 590 interview questions