Find Jobs
Hire Freelancers

Solve Java Puzzle

₹600-610 INR

In Progress
Posted over 6 years ago

₹600-610 INR

Paid on delivery
Please write answer code using Java. We have ping pong room in our office and there is one table. What we want to know is when we know people's availability for their playing time, how many hours can we play either singles or doubles in a day. condition: The working hours are 9-18. The table is only one table. When gathering two, three people, we can play singles. When gathering over four people, we can play doubles. Input The first line of the input gives the number of players T, T players available time follow. Each consists of one line with Integer S E. S represents start time, and E represents end time. Ex: 2 9 10 9 12 It means 2 players can play ping pong. The 1st player can play from 9 to 10 and the 2nd player can play ping pong from 9 to 12. Output: The output one line containing x y. where x is singles hours count and y is double hours. The above input means player 1 can play ping pong from 9 to 10, and player 2 can play ping pong from 9 to 12. So, expected output of above example is 1 0 Data you need to solve is here: Q1 Input 2 9 10 9 12 Output : 1 0 Q2 Input 4 9 10 9 12 13 15 10 18 Output: 5 0 Q3 Input 7 9 11 12 14 13 15 11 18 14 18 10 14 15 18 Output: 7 1 Q4 Input 9 9 10 9 12 14 15 16 18 14 18 10 13 15 18 10 14 9 13 Output : 6 2 Q5 Input 8 9 14 15 17 12 13 16 18 10 15 14 16 9 13 9 15 Output : 5 3
Project ID: 15065606

About the project

3 proposals
Remote project
Active 7 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
3 freelancers are bidding on average ₹772 INR for this job
User Avatar
Nice problem. I can solve it. Please assign project to me and I can provide you solution. Please share if you other such problems. It's always fun solving these.
₹600 INR in 1 day
5.0 (50 reviews)
6.2
6.2
User Avatar
I am a college A-level student studying computer science and am working at an A. I have been programming in Java for years and feel that this project will not take long to complete. Relevant Skills and Experience I have picked up many skills in the time I have been programming such as polymorphism, encapsulation, generics and lambdas. I have experience in JavaFX and console applications. Proposed Milestones ₹855 INR - I will complete this task and make it bug-free.
₹855 INR in 1 day
5.0 (2 reviews)
1.0
1.0

About the client

Flag of INDIA
Ahmedabad, India
5.0
1
Member since Oct 11, 2015

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.