5.Write a C/C++ program to print the pattern for the given value N. For example N=5 1 2 3 2 3 4 5 4 3 4 5 6 7 6 5 4 5 6 7 8 9 8 7 6 5
Java Interview Questions
6,587,469 interview questions shared by candidates
Write an algorithm to construct run length encodings of arbitrary strings where repeated instances of the same character get replaced with [number of times character appears] + [character]. For example, "xxxxxx" becomes "6x". It should be unambiguous and the compressed string should always be shorter.
You have a genealogy: 1) Describe a data structure to represent it. 2) Given any two people within the genealogy, describe an algorithm to determine if they share a common ancestor. You just need to return true/false, not all ancestors.
Was ist der schnellste Weg, 1 Million Integer zu sortieren, wenn alle im Bereich [1,100] sind?
If a car company was introducing a new hybrid vehicle, what Google products would you use to bring the new car to market?
You have a n number of cities. Lets say city 1 has some information that needs to be sent to all other n-1 cities using minimal cost. Cost between each pair of cities is given. any number of cities can transmit the information once they receive the information but the overall total cost should be minimum
Given two files that has list of words (one per line), write a program to show the intersection.
If you could be any animal what would that be?
Why do you want to be a FA ?
Viewing 3801 - 3810 interview questions