Print all permutations of a given string.
Software Interview Questions
550,965 software interview questions shared by candidates
There are 199 elements in array. It has only one distinct value? How will find this distinct value? Also for solution please tell about O(n)?How can you make it more efficient?
Given a binary tree with only upwards (parent) node references, re-construct the tree adding in child references. You are given a list of leaf nodes (sorted in left to right order). Tricks include making sure to account for extremely unbalanced trees.
They also asked some behavioral questions.
Reverse a String eg: I am a boy ans : boy a am I
In Array find largest second number ?
Which sorting algorithm would be good for sorting small-sized integer arrays and why? What is the performance? What about for large-sized integer arrays?
Find the length of the longest palindrom in a given string
print all permutations of a string
(1) two sums : given a list of numbers, return the indexes of two values whose sum is a given value. (2) Revers a string list
Viewing 1601 - 1610 interview questions