count the number of times a word has occurred in a given string
Software Development Engineer Interview Questions
32,827 software development engineer interview questions shared by candidates
Reverse a String eg: I am a boy ans : boy a am I
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.
Design a Data Structure SpecialStack that supports all the stack operations like push(), pop(), isEmpty(), isFull() and an additional operation getMin() which should return minimum element from the SpecialStack. All these operations of SpecialStack must be O(1). To implement SpecialStack, you should only use standard Stack data structure and no other data structure like arrays, list, etc.
Given a string, find whether it has any permutation of another string. Need to be efficient
Recursively reverse a singly linked list.
int getCount(int[] arr, int num)
write a boolean method to find out if a number is a power of 2
Viewing 221 - 230 interview questions