Bloomberg LP Interview Report
- 0of 0 votes
AnswersWhere other are you interviewing?
- souravghosh.btbg March 28, 2011| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Behavioral - 0of 0 votes
AnswersGiven the following:
void foo (/* Add param here */) { } void main () { char *str; foo (/* Pass str somehow here */); printf ("%s\n", str); }
Complete foo.
- souravghosh.btbg March 27, 2011
Follow up question was:
You probably used malloc or new in foo. That will cause memory leak. Write it in such a way so that memory does not leak (Basically use global or static).
Eazy peazy!| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer C - 0of 0 votes
AnswersGiven the stats that the highest occurring character in english text is 'e', given a cipher text as input, find out the plain text from it.
- souravghosh.btbg March 27, 2011
E.g.:
Given input "bloomberg", the highest occurring characters are 'b' and 'o'. Let's consider 'b'. According to our metric, highest occurring character should be mapped to 'e'.
So 'b' maps to 'e' in plain text.
Now shift all the other characters in the input to the output with the same shift offset.
Output for "bloomberg" = "eorrpehuj".
Also take care for character overflow, i.e. 'z' + 1 should map to 'a' (WRAP AROUND).
ALL CHARACTERS ARE LOWERCASE. Assume.| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Algorithm - 0of 0 votes
AnswersWhy would you pick Bloomberg over the other company?
- souravghosh.btbg March 28, 2011| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Behavioral - 0of 0 votes
AnswersWhy Bloomberg?
- souravghosh.btbg March 27, 2011| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Behavioral - -3of 3 votes
AnswersGiven the input array:
- souravghosh.btbg March 27, 2011
[2, 3, 5, 6, 12, 4, 2]
The output array is:
[2, 6, 18, 24, 30, 35, 38, 40].
Find the pattern between the two and write a program to convert input to output.
Simple enough.| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Algorithm - 0of 0 votes
AnswersWhy finance?
- souravghosh.btbg March 28, 2011
Why computer science?
What motivates you, what interests you?| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Behavioral