Reverse an integer. Looking for optimized solution and definitely no tostring type of solution
Programmer Trainee Interview Questions
712,971 programmer trainee interview questions shared by candidates
1. Reverse string except spaces. A string has mix of alphabets and spaces. Your task is to reverse the string, but preserve the positions of spaces. For example, reverse of " a if" is " f ia" 2. An array of size n has all but one numbers between 1 and n+1. Find the missing one.
Find the character with longest repitition in the string e.g. aaacccddddeefffffffg the result should be 'f'.
Write a function to find the maximum sum of sub array where the array can have negative and positive numbers.
find duplicated item from an array, output the duplicated item with their times
what was a technical difficulty and how have you overcome it.
if you have a linked list ordered like : n1-n2-n3-n4-n5-n6-n7-NULL. how to sort it to be at the order : n2-n1-n4-n3-n6-n5-n7-NULL
Given an array of items of three different colors red, green, blue. How would you sort the items in the array so that all the items with a certain color would be grouped together.
Give me 5 different ways of finding the median (middle element) of a linked list. For the sake of simplicity, assume the list has odd number of ints. Also mention the runtime for each. Follow up: What's the fastest way you could find the median? What is the runtime? Oh.. and yes, code your answer(s) in any language of your preference.
Print a binary tree level by level in zigzag order
Viewing 1141 - 1150 interview questions