Senior Interview Questions

341,433 senior interview questions shared by candidates

Write a program in Java to assess a given string whether it complies with following patterns. Return true if a given string complies with these patterns else false. N = N1 + N2 N>= N1 >= N2 where N is the Nth element in the string or element at Nth position; N1 is the (N-1) element in the string & N2 is the (N-2) element in the string. Example 1: 224610 Elements in this string are 2, 2, 4, 6, 10. First Set: 2+2=4 (N2=2; N1=2 & N= 4); Second Set: 2+4=6 (N2=2; N1=4 & N=6); Third Set: 4+6=10 (N2=4; N1=6 & N= 10) Example 2: 1112233558 Elements in this string are 1, 11, 12, 23, 35, 58 Example 3: 1101102203 Elements in this string are 1, 101, 102, 203
avatar

Senior Software Engineer

Interviewed at eBay

3.9
Feb 20, 2015

Write a program in Java to assess a given string whether it complies with following patterns. Return true if a given string complies with these patterns else false. N = N1 + N2 N>= N1 >= N2 where N is the Nth element in the string or element at Nth position; N1 is the (N-1) element in the string & N2 is the (N-2) element in the string. Example 1: 224610 Elements in this string are 2, 2, 4, 6, 10. First Set: 2+2=4 (N2=2; N1=2 & N= 4); Second Set: 2+4=6 (N2=2; N1=4 & N=6); Third Set: 4+6=10 (N2=4; N1=6 & N= 10) Example 2: 1112233558 Elements in this string are 1, 11, 12, 23, 35, 58 Example 3: 1101102203 Elements in this string are 1, 101, 102, 203

One member of the peer group asked me, "If your budget were $xx, how would you spend it?" I gave some very broad brushstrokes said asked, "what are your objectives?" and by what measure would you determine the success of the spend?" He was visibly agitated by my answer and without responding to my question, essentially forced me to make a guess and then immediately made it clear he disagreed. He was downright rude.
avatar

Unspecified Senior Marketing Role

Interviewed at T-Mobile

3.6
Aug 21, 2014

One member of the peer group asked me, "If your budget were $xx, how would you spend it?" I gave some very broad brushstrokes said asked, "what are your objectives?" and by what measure would you determine the success of the spend?" He was visibly agitated by my answer and without responding to my question, essentially forced me to make a guess and then immediately made it clear he disagreed. He was downright rude.

Viewing 941 - 950 interview questions

Glassdoor has 341,433 interview questions and reports from Senior interviews. Prepare for your interview. Get hired. Love your job.