Filter interviews by
Aptitude test which goes nice and we done will and basic knowledge in excel and ms offcie tool
Top trending discussions
posted on 26 Oct 2023
#include
#include
#include
#include
class SeatReservation {
private:
int n; // Number of rows
int m; // Number of seats per row
std::vector
public:
SeatReservation(int rows, int seatsPerRow) : n(rows), m(seatsPerRow) {
reservedSeats.resize(n);
}
std::string reserve(int r, int k) {
if (r < 1 || r > n || k < 1 || k > m) {
return "Invalid row or seat number";
}
// Check if requested seats are available
for (int i = k; i < k + 3; ++i) {
if (reservedSeats[r - 1].count(i) > 0) {
return "Seats not available";
}
}
// Reserve the seats
for (int i = k; i < k + 3; ++i) {
reservedSeats[r - 1].insert(i);
}
return "Booked with seat number " + std::to_string(k);
}
};
int main() {
// Example usage
SeatReservation theater(2, 3);
std::cout << theater.reserve(1, 3) << std::endl; // Booked with seat number 1
std::cout << theater.reserve(2, 4) << std::endl; // Seats not available
return 0;
}
Easy for developer work on quant reasoning and verbal for aptitude round
Easy to medium level questions for coding round
posted on 26 Oct 2023
#include
#include
#include
#include
class SeatReservation {
private:
int n; // Number of rows
int m; // Number of seats per row
std::vector
public:
SeatReservation(int rows, int seatsPerRow) : n(rows), m(seatsPerRow) {
reservedSeats.resize(n);
}
std::string reserve(int r, int k) {
if (r < 1 || r > n || k < 1 || k > m) {
return "Invalid row or seat number";
}
// Check if requested seats are available
for (int i = k; i < k + 3; ++i) {
if (reservedSeats[r - 1].count(i) > 0) {
return "Seats not available";
}
}
// Reserve the seats
for (int i = k; i < k + 3; ++i) {
reservedSeats[r - 1].insert(i);
}
return "Booked with seat number " + std::to_string(k);
}
};
int main() {
// Example usage
SeatReservation theater(2, 3);
std::cout << theater.reserve(1, 3) << std::endl; // Booked with seat number 1
std::cout << theater.reserve(2, 4) << std::endl; // Seats not available
return 0;
}
Easy for developer work on quant reasoning and verbal for aptitude round
Easy to medium level questions for coding round
I applied via Walk-in and was interviewed in Feb 2023. There were 3 interview rounds.
Simple aptitude question s related to general maths identity and local technical questions
Junior Engineer
903
salaries
| ₹1.8 L/yr - ₹6 L/yr |
Assistant Engineer
641
salaries
| ₹3 L/yr - ₹9 L/yr |
Junior Engineer Civil
461
salaries
| ₹1.8 L/yr - ₹6.3 L/yr |
Senior Engineer
427
salaries
| ₹4 L/yr - ₹11 L/yr |
Assistant Engineer - Civil
244
salaries
| ₹3.3 L/yr - ₹9.2 L/yr |
Larsen & Toubro Limited
TCS
BHEL
Infosys