Design a search autocomplete system for a search engine. Users may input a sentence (at least one word and end with a special character '#'). For each character they type except '#', you need to return the top 3 historical hot sentences that have prefix the same as the part of sentence already typed. Here are the specific rules:
Software Development Programmer Interview Questions
33,188 software development programmer interview questions shared by candidates
Would you say you've mastered any languages on your resume?
13. What is the result of executing the code fragment below? // suitable #includes class Text { public: Text(const std::string &text) : data(new char[text.size() + 1000]) { std::copy(text.begin(), text.end(), data); } ~Text() { delete [] data; } void print() const { std::cout << data << std::endl; } private: char *data; }; int main(int, char *[]) { Text outer("hello"); { const Text inner("world"); outer = inner; } outer.print(); return 0; } a. prints "hello" b. prints "world", but there is a buffer overflow in the constructor c. prints "world", no problems anywhere d. none of the above 14. For some class Value, which of the following fragments is the preferred way of writing the declaration of the equality operator? a. extern bool operator==(const Value &lhs, const Value &rhs); b. class Value { public: bool operator==(const Value &other); }; c. class Value { public: bool operator==(const Value *other); }; d. class Value { public: bool operator==(const Value &other) const; }; 15. Consider the following line of code: C c1 = c2; What method is called ? a. Assignment operator b. Copy constructor c. Both d. None of the above 16. Consider the following code: struct A { int i; }; class B { int j; } a. A::i is publicly accessible b. B:i is publicly accessible c. both the above are true d. Neither the above are true
What is atoi()
OOPS CONCEPTS and importance and how it woks
project
Patttern based question Hard questions
Using MagicFS, do a linear search through this list.
White Board problem solving(20 Minutes) Question and answers(10 Minutes)
The position required knowledge with Java spring and hibernate framework as well as knowledge with Oracle DB, understanding of SDLC, waterfall/agile, understanding performance and scale-ability aspects, team work, working with large client-server application, interact with multiple modules (interfaces)
Viewing 1421 - 1430 interview questions