Coding Challenge 1) Find the longest palindromic substring from the given string. No need of DP solution.
Engineer Software Interview Questions
418,713 engineer software interview questions shared by candidates
Assume that you are given the head and tail pointers of a doubly linked list where each node can also have a single child pointer to another similar doubly linked list. There are no cycles in this structure outside of the traditional double links. Write a procedure in C++ that flattens this structure into a single list.
If you have a program that runs slow, how will you improve it to run faster?
Sort a array, [W B W B B W W B ] === [W W W W B B B B ]
1. IsAnagram 2. Count unique substring of length k
Write a function that returns true when number of things (N) can be precisely divided into boxes of 6, 9 and 20 => N = 6x + 9y + 20z
Given a string, find the longest substring T that contains m distinct characters. (need O(n) solution)
what's wrong with the following code : <template type T > T accumulate ( vector<T> in) { T total = in[0]; for (int i =0; i < in.length() ; i++) { total = total + in[i]; } return T }
Given n numbers (P1,P2,P3,.....Pn). Divide them in m contiguous partitions such that the sum of the maximum is minimum. For e.g. (5,1,4,2,3) and m =2 then (5,1)(4,2,3)
There are n pots with different # gold coins in them. Two players play a game, where each player can select a pot at either ends. maximize the gold
Viewing 271 - 280 interview questions