Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restaurant Customers #143

Open
suryaprakashpandey opened this issue Oct 3, 2023 · 3 comments · May be fixed by vaishnavim141003/Competitive-Programming-2023-GDSC-CUMMINS-X-GDSC-MMCOE#4

Comments

@suryaprakashpandey
Copy link
Collaborator

Write code in the preferred language and attach output with it.

You are given the arrival and leaving times of n customers in a restaurant.

What was the maximum number of customers in the restaurant at any time?

Input
The first input line has an integer n: the number of customers.

After this, there are n lines that describe the customers. Each line has two integers a and b: the arrival and leaving times of a customer.

You may assume that all arrival and leaving times are distinct.

Output
Print one integer: the maximum number of customers.

Example:

Input:
3
5 8
2 4
3 9
Output: 2

@mercurrie
Copy link

👋🏽 hi I'd like to take a crack at this problem. I didn't know how you specifically wanted me to submit the code, so I did it the usual way created a clone -> new branch -> main.py file and submitted a pull request.

@vaishnavim141003
Copy link

I would like to work on this issue using python language -Vaishnavi Mahajan.
Cummins college of engineering.(SY)
Can you please assign this issue to me .

@vaishnavim141003
Copy link

vaishnavim141003 commented Oct 31, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment