Find the Bug in my Java program that's causing wrong answer

Job Description:

I have code in Java for this problem :

[login to view URL]

The code passes sample test cases but failes on the full test suite. I need you to accurately find the bug in the code and provide a paragraph describing the bug and how you would fix the bug.

Skills: Java, Debugging

About the Client:
( 14 reviews ) Frisco, United States

Project ID: #35431724

7 freelancers are bidding on average $26 for this job


Hello, Nice meet you! I have read your project requirements and then I am sure I can complete that project. I can help you. Thank you.

$20 USD in 7 days
(4 Reviews)

Hi. Your provided link is not working. Pls send me the correct link and current code so that I can debug it. Tks.

$40 USD in 1 day
(7 Reviews)

Hello. I am Java expert. I am ready to start your project right now and i'm confidence about your successful project in exact period that you want. I can help you exactly. I am waiting for you. Looking forwark working More

$50 USD in 7 days
(0 Reviews)

Hi there Myself Neela. I am a expert in java programming with 4 yrs of experience. Recently I completed ocjp17 as well. I believe I can help you with your problem and will suggest you solution with best coding standard More

$25 USD in 7 days
(0 Reviews)

Why are you calling me? __________________________________________________________________________________________________________________________________________________________________________________________________ More

$20 USD in 7 days
(0 Reviews)

Hi I am proficient in Java and I have written programs with over a thousand lines of code and I could help find your bug. Message me if you’re interested in working with me.

$15 USD in 1 day
(0 Reviews)

Solved 2800+ Algorithmic problems. 3+ years experience in solving problems in JAVA. Google Codejam 2022 IndiaRank: 304 Facebook Hackercup 2022 India Rank : 102 Global Rank:63/17,662 CodeChef Snackdown Coding Competitio More

$10 USD in 7 days
(0 Reviews)