Filter interviews by
#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;
}
I am a recent graduate with a degree in engineering, passionate about problem-solving and eager to learn and grow in a professional environment.
Recent graduate with a degree in engineering
Passionate about problem-solving
Eager to learn and grow in a professional environment
I have experience working on various engineering projects, including designing, testing, and implementing solutions.
Designed and implemented a new software system to improve efficiency in data analysis
Collaborated with a team to troubleshoot and resolve technical issues in a manufacturing process
Conducted experiments to test the performance of different materials for a construction project
I applied via Monster and was interviewed in Jul 2024. There were 2 interview rounds.
Reverse the array and convert it into heap
Maths question and english question they have asked
I applied via Newspaper Ad and was interviewed in Nov 2023. There was 1 interview round.
J. Kumar Infraprojects interview questions for popular designations
Get interview-ready with Top J. Kumar Infraprojects Interview Questions
I applied via Referral and was interviewed in Oct 2023. There were 4 interview rounds.
I applied via Monster and was interviewed before Jul 2023. There were 2 interview rounds.
I currently reside at 123 Main Street, Anytown, USA.
My current address is 123 Main Street, Anytown, USA.
I live in a residential area.
The address includes a street number, street name, city, and country.
I currently reside at 123 Main Street, City, State, Zip Code.
123 Main Street, City, State, Zip Code
Provide complete address including street, city, state, and zip code
What is bjjmbsksksksksk
I applied via Walk-in and was interviewed in Dec 2023. There was 1 interview round.
BBS in construction stands for Bar Bending Schedule.
BBS is a document that provides details about the reinforcement steel bars used in a construction project.
It includes information about the size, shape, quantity, and placement of the bars.
BBS helps in estimating the required amount of steel, planning the cutting and bending of bars, and ensuring proper reinforcement in the structure.
Example: BBS for a column may spec...
Mix ratio M 25 is a concrete mix design that consists of 1 part cement, 1 part fine aggregate, and 2 parts coarse aggregate.
M 25 mix ratio is commonly used in construction for structural applications.
The mix ratio represents the proportions of different materials used in the concrete mix.
For M 25, the ratio is 1:1:2, which means 1 part cement, 1 part fine aggregate (sand), and 2 parts coarse aggregate (stone chips or g...
The number of zones in a u grider varies depending on the specific design and requirements.
The number of zones in a u grider can range from 1 to multiple zones.
Zones are typically created to divide the grider into sections for better load distribution and structural stability.
The number of zones may be determined by factors such as the length and span of the grider, the load it needs to support, and the design specific...
To calculate zone A, zone B, and zone C, you need to know the total area and the dimensions of each zone.
Determine the total area of the site
Calculate the area of zone A by subtracting the combined area of zones B and C from the total area
Calculate the area of zone B using the given dimension
Calculate the area of zone C by subtracting the area of zone B from the total area
Ensure the units of measurement are consistent
Working at heights requires proper safety measures and equipment.
Use appropriate safety harnesses and fall protection systems.
Ensure scaffolding and ladders are secure and stable.
Follow safety guidelines and regulations.
Provide proper training to workers on working at heights.
Regularly inspect and maintain equipment and tools.
Implement safety barriers and guardrails.
Use aerial lifts or platforms for safe access to elev...
I behave as a civil engineer by being professional, organized, and detail-oriented.
I maintain a professional demeanor at all times, treating colleagues and clients with respect.
I am organized in my work, keeping track of project timelines, budgets, and resources.
I pay attention to details, ensuring accuracy in calculations, measurements, and documentation.
I communicate effectively with team members, subcontractors, and...
I applied via Company Website and was interviewed before Jun 2023. There were 2 interview rounds.
Normal and easy. Simple enough question
Normal and easy question very standard
Top trending discussions
Interview experience
based on 1.1k reviews
Rating in categories
Civil Engineer
168
salaries
| ₹2 L/yr - ₹9 L/yr |
Junior Engineer
167
salaries
| ₹2 L/yr - ₹5 L/yr |
Civil Site Engineer
156
salaries
| ₹2 L/yr - ₹6.6 L/yr |
Senior Engineer
132
salaries
| ₹4.5 L/yr - ₹11.2 L/yr |
Engineer
118
salaries
| ₹2.5 L/yr - ₹9.8 L/yr |
Larsen & Toubro Limited
Hindustan Construction Company
Simplex Infrastructures
IRB Infrastructure