Future Advisor Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
0
of 0 vote

What shit is this!

- Mr.4342 July 26, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

@dhaval0129 : did u came here after fucking ur mum.... seems u were out of control... go 'n get bz in ur fuking shits!

- anonymous July 28, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

your response is more rubbish than dhaval0129 question. Please show some respect to this portal and dont use this kind of language.

- Anonymous July 28, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Ques. isn't that hard..
it asks for max. as well as min. change in percentage of the stock values over a period of time.
I wud suggest u following approach:
1. Since these data are stored in a text file, read the contents using file pointer.
2. It sud be easy for u to get the compny's prices in an array keeping a track of which compny this array coresponds to.
3. For eg. look at this data: 20, 30, 10, 5, 40, 100, 1, 90, 90
u r reqd to find max. percntge change
4. This is likely to occur when differnce between 2 values is largest i.e. (5-100) diffence = 95. but %ge chnge is 1900%. Also look at (1-90) diff = 89, but %ge chnge = 8900%. similar approach for min. burst can b taken.
5.so u hv to basically store "some" min and max val. from the array along wid their index(i.e. period of occurence) and see which one gives u the max burst %ge.
6. in step 5 index is useful to keep track whether the min val. occurs b4 max or vice versa...a bit of logic is reqd. jst here and choosing the value of "some" in step 4. rest seems easy, :)

- rocx July 28, 2011 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More