• Problems
  • Contest
  • Discuss
Registeror
Premium
All Time
数据为空数据为空
No search result
Trending

Interview after being Laid Off || First Interview || EY|| Bengaluru || Senior software engineer

Anonymous User
525
Interview

Interview was schedule for 30 mins.

  1. Write syntax for dynamic cast in C++. Why it is used?
    A* a = new B();
    B* b = dynamic_cast<A*>(a);
  2. Create vector for storing the shared ptr.
    vector<shared_ptr> v1;
    for(int i = 0; i < 10; i++)
    {
    v1.push_back(make_shared
    ());
    }
  3. Can we use move pointer in case of singletion class?
    Using move semantics for a singleton could potentially lead to unexpected behavior and violate the principle of having a single, globally accessible instance. Therefore, it's generally best to rely on the intended access methods provided by the singleton class itself rather than moving its instance pointer.
  4. Difference between vector and list?

vector->array, list->linked list

  1. Difference between multimap and unordered map?

hash and RBT

  1. What is virtual constructor?

There is no virtual constructor in C++.

EY
Updated 4 hours ago
3 Questions·1 new·
2.1k
·
Comments (0)
Trending
Download App
Support
Terms
Privacy Policy
More
Copyright © 2026 LeetCode
United States