SumoLogic Interview Report
- 0of 0 votes
AnswersGiven an array of integers you to find the range l,r such that and operation of largest two element in that range is maximum.
- ritwik_pandey August 09, 2015 in India
For example:
Input
6 1 6
Output
1 3
You have to print lexicographically smallest range.| Report Duplicate | Flag | PURGE
SumoLogic SDE-3 String Manipulation - 0of 0 votes
AnswersGiven a matrix of n*n. Each cell contain 0, 1, -1.
- ritwik_pandey August 09, 2015 in India
0 denotes there is no diamond but there is a path.
1 denotes there is diamond at that location with a path
-1 denotes that the path is blocked.
Now you have start from 0,0 and reach to last cell & then return back to 0,0 collecting maximum no of diamonds.
While going to last cell you can move only right and down.
While returning back you can move only left and up.| Report Duplicate | Flag | PURGE
SumoLogic SDE-3 Dynamic Programming
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.