Traveloka
10+ Linfox Logistics Interview Questions and Answers
Q1. System Design Round : Design IRCTC , how does IRCTC reserve a seat? What kind of locking do they use?
IRCTC reserves seats using a complex system of availability checks and booking processes.
IRCTC uses a combination of real-time availability checks and booking processes to reserve seats.
The system checks for availability of seats in real-time and reserves them for a short period of time while the booking process is completed.
IRCTC uses a locking mechanism to ensure that the same seat is not booked by multiple users at the same time.
The locking mechanism is based on a first-co...read more
You are given an array 'ARR' of 'N' positive integers. Your task is to find if we can partition the given array into two subsets such that the sum of elements in both subsets is equal....read more
Q3. Design Makemytrip , how does makemytrip blocks the seat for 15 mins even if the payment doesnot go through?
Makemytrip blocks seat for 15 mins by using a hold on the seat inventory.
Makemytrip uses a hold on the seat inventory to block the seat for 15 mins.
If the payment doesn't go through, the hold is released and the seat becomes available again.
This ensures that the seat is not booked by someone else during the payment process.
The hold time can vary depending on the airline's policy.
Makemytrip also sends reminders to complete the payment before the hold expires.
You are given an infinite supply of coins of each of denominations D = {D0, D1, D2, D3, ...... Dn-1}. You need to figure out the total number of ways W, in which you can make a change fo...read more
For a given array with N elements, you need to find the length of the longest subsequence from the array such that all the elements of the subsequence are sorted in strictly increa...read more
Given an array parent which represents a binary tree such that parent-child relationship is defined by ('PARENT'[i], 'i') which means that parent of i...read more
Build Search Functionality, for a Hotel booking system like OYO, which should results in relevant search result based on User query. Constraints were as follows:-
1. User Query can be anything.
2. Ho...read more
Aahad and Harshit always have fun by solving problems. Harshit took a sorted array and rotated it clockwise by an unknown amount. For example, he took a sorted arr...read more
You have been given an N*M matrix filled with integer numbers, find the maximum sum that can be obtained from a path starting from any cell in the first row to any cell in the last...read more
Q10. What are checked and unchecked exceptions?
Checked exceptions are checked at compile-time while unchecked exceptions are not.
Checked exceptions are those that are checked at compile-time and must be handled by the programmer.
Unchecked exceptions are those that are not checked at compile-time and can be handled or not handled by the programmer.
Checked exceptions are subclasses of Exception class while unchecked exceptions are subclasses of RuntimeException class.
Examples of checked exceptions include IOException, Class...read more
Q11. Pros and cons of in-memory database , and distributed database
Comparison of in-memory and distributed databases
In-memory databases are faster due to data being stored in RAM
Distributed databases offer better scalability and fault tolerance
In-memory databases are limited by available RAM
Distributed databases require more complex setup and maintenance
In-memory databases are suitable for real-time applications
Distributed databases are suitable for large-scale applications with high availability requirements
Q12. General security concepts in manual code review
Manual code review involves analyzing code for security vulnerabilities using general security concepts.
Identifying potential security vulnerabilities in the code
Checking for input validation to prevent injection attacks
Reviewing authentication and authorization mechanisms
Ensuring secure coding practices are followed
Looking for sensitive data exposure
Q13. Design Twitter timeline
Design Twitter timeline to display tweets in chronological order
Use a database to store tweets with timestamps
Implement a sorting algorithm to display tweets in chronological order
Include features like retweets, likes, and replies
Allow users to filter timeline based on hashtags or users they follow
Interview Process at Linfox Logistics
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month