Write a function that, given a list of integers (both positive and negative) returns the sum of the contiguous subsequence with maximum sum. Thus, given the sequence (1, 2, -4, 1, 3, -2, 3, -1) it should return 5.
Programmer Analyst I Interview Questions
716,641 programmer analyst i interview questions shared by candidates
Question1 /** * Given a nested list of integers, returns the sum of all integers in the list weighted by their depth * For example, given the list {{1,1},2,{1,1}} the function should return 10 (four 1's at depth 2, one 2 at depth 1) * Given the list {1,{4,{6}}} the function should return 27 (one 1 at depth 1, one 4 at depth 2, and one 6 at depth 3)
You have a 5L and a 3L bottle. How can you get exactly 4 Litters of water?
test life cycle in assurance
Because I had a lot of mobile development experience listed on my resume, they asked me a lot about mobile development.
Print numbers 1 to 100 in sequence using multiple threads.
Explain a few technical terms like markov chain, singleton, mvc, bloom filter, opportunistic lock, row-level locking
Given a list of Strings, return all groups of acronyms.
What is the efficiency of finding an element in an unsorted array of strings
Find the largest sum of contiguous numbers in an array
Viewing 1041 - 1050 interview questions