Delhivery Interview Experience | Set 4 (Off-Campus)
There were 4 rounds in total . 3 Technical + 1 HR . Every round is elimination round
Round 1:
He asked my 2 algorithmic problems.
- Find the number of anagram pairs in a string . For example for string “abba”, there are 4 such pairs {a, a}, {b, b}, {ab, ba} , {abb, bba} .
- A string contains only G, T, C, A . Length of the string is always divisible by 4 . A stable string is a string which contains equal number of G, T , C, and A . Given a string containing only G, T, C, A find the length of the smallest possible substring that he can replace to make it a stable string? For Example in string GAAATAAA . optimal solution is to replace AAATA with TTCCG resulting in GTTCCGAA.
- Design a system for shortening URL application.
Round 2:
- Discussion on previous projects
- Differences between C++, Java and Python
- Why Python is slower than Java.
- Do you really need API Versioning?
- Design a database for Warehouses for the Delhivery team .
- Discussion on Singleton patter, factory pattern, Builder pattern, abstract factory pattern and the implementation of all in any language . I did it in java.
- Normalisation in RDBMS
- There is a network failure in a distributed database . Discuss the scenario in all three possible cases using CAP theorem.
- Reverse Level order traversal in a Binary Tree . I did it using Queue DS and then He asked me to do minimal changes in the code to make it inOrder Traversal ( Use Stack instead of Queue ).
- Static binding vs Late Binding in C++ .
Round 3:
It was the director’s round
- 2 Engineering problems that you have solved.
- There are N vehicles in Delhivery and 1 vehicle can do atmost (2 drops or 2 pick ups or 1 pickup + 1 drop) per hour . Client books his order between start time and end time for the next day . I need to return true or false . True if I can book a vehicle for that period else False.
- Design a database for an organisation such that it has employees, every employee can have a role. One role can have many permissions for example Rola – Manager can code, can manage, can recruit . Role – Coder can code but not manage, Role – HR can manage and recruit. All tables should be in BCNF.
- Using this database, create a query such that it returns all the employee name who can not code.
Round 4:
- Tell me about yourself .
- Previous Experience
- What are your aspirations in life.
- What are your strengths and weaknesses?
- What are your career options right now?
Please Login to comment...