Reverse a String eg: I am a boy ans : boy a am I
Software Development Interview Questions
36,968 software development interview questions shared by candidates
Find the length of the longest palindrom in a given string
You are given 1000 containers of water with exactly one container containing poison. You can use pigs to test which container contains poison. The conditions are that: A pig drinking the poisoned water woudl die exactly after 1 hour and that a pig could be used for sampling multiple containers. Assume that the pig takes 0 time to drink water from any number of containers. What is the minimum number of pigs would you use to identify the poisoned container within 1 hour.
Print all permutations of a given string.
int getCount(int[] arr, int num)
Write a function that takes an input string, consisting of several words separated by spaces, and print out each word reversed, keeping the same order within the string.
How would you reverse the words in a string?
Recursively reverse a singly linked list.
write a boolean method to find out if a number is a power of 2
1- Given an array of integers, positive and negative. find an interval in that array, whose elements constitutes the maximum sum
Viewing 231 - 240 interview questions