Bloomberg LP Interview Report
- 0of 0 votes
AnswersFind out the first non duplicate character in a string.
- thefourthmusketeer May 27, 2010
eg: "nasa" output: 'n'
I have given a solution using hashmap.
Its o[n]+ o[n] performance. ( constructing hashmap + traversing the string )
He wanted solution with just o[n] which I was not able to write there.| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer Algorithm - 0of 0 votes
AnswersWrite a function which takes x as a parameter and prints f(x)given that
- thefourthmusketeer May 27, 2010
f(0)=1;
f(1)=0;
f(x+2)=F(x)-f(x-1);
I wrote both the iterative and recursive versions.
the interviewer then modified the question
In the recursive version, print all the numbers in the series till the input parameter| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer C++ - 0of 0 votes
AnswersI was asked a question to get all the numbers from a file with a number per line.
- thefourthmusketeer May 27, 2010
I used streams and stored them in a vector.
However he told me that using a vector wastes space. How do you optimise . I told him I would use a linked list.
But he said he wanted to use a vector construct.| Report Duplicate | Flag | PURGE
Bloomberg LP Software Engineer / Developer - 0of 0 votes
Answerswhat is Vtable explain and give example. design a class and make virtual table for that.
- getjar.com/todotasklist my android app October 06, 2011 in -| Report Duplicate | Flag | PURGE
Samsung Software Engineer / Developer C++ - 0of 0 votes
Answersif polymorphism is possible in C if yes then how.
- getjar.com/todotasklist my android app October 06, 2011 in -| Report Duplicate | Flag | PURGE
Samsung Software Engineer / Developer C++ - 0of 0 votes
Answerswhich is faster c or c++.
- getjar.com/todotasklist my android app October 06, 2011 in -| Report Duplicate | Flag | PURGE
Samsung Software Engineer / Developer C++ - 0of 0 votes
Answerswhat are call back functions.Why they are useful.
- getjar.com/todotasklist my android app October 06, 2011 in -| Report Duplicate | Flag | PURGE
Samsung Software Engineer / Developer C++ - 0of 0 votes
Answersgive ur introduction why samsung what quality u lack and what u r doing to improve it.
- getjar.com/todotasklist my android app October 06, 2011 in -| Report Duplicate | Flag | PURGE
Samsung Software Engineer / Developer Behavioral - 0of 0 votes
Answershow compiler generates unique names for overloaded functions, if two functions have same name and same parameters but differnt return type , can it be possible i said no he asked why . i explained about the name mangling and showed that return type does not play any role in name mangling.
- getjar.com/todotasklist my android app October 06, 2011 in -| Report Duplicate | Flag | PURGE
Samsung Software Engineer / Developer C++ - 0of 0 votes
Answerstell me about about function pointer , how to call a function using function pointer.
- getjar.com/todotasklist my android app October 06, 2011 in -| Report Duplicate | Flag | PURGE
Samsung Software Engineer / Developer C++