Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Johan is correct. The description and test cases have been fixed to reflect the change
Fixed description and test cases
I can reword the description to match what should be clarified.
Also to clarify, there is no cut. It is assumed that the seller will receive the top two bills in full.
There is a test case for zero bids. One bid can be treated as it's own bid. Therefore, if the one bid is greater than the value, then the auctioneer has made a profit and will return true.
"Auctioneer" is actually neither ..
An auctioneer is an agent, not the actual seller of the item. They usually work on commission.
The description asks if the auctioneer makes a profit, but the actual task may be determining if the seller makes a profit.
Also, if the auctioneer takes a cut of the ultimate sale price, seller may not get the full top two bids as payout.
This should be clarified.
What happens when there are zero or one bid(s)?
Marking resolved
Oh okay so I misread, it was a language issue: I thought that "auctioneer" is a person who attempts to buy an item, and not sell it.
All bids are considered legitimate regardless of how many people are participating in the auction. A test case has been made if no bids are placed.
The user is not bidding in the auction. All that needs to be determined is whether the auctioneer makes a profit or not. All bids are considered legitimate regardless of who is bidding. That means the same person can bid twice in a row.
Issue resolved
It's not clear to me how to tell which bids in the input list are mine, and which are not. How do I distinguish the person who makes a bid?
There is no fixed tests which test for particular scenarios and edge cases. There should be fixed tests for situations like: auctioner won, auctioner came as second and lost, auctioner came as third or later, maybe some additional cases like getting out-bid, and edge cases like only one auctioner, or no bids.
Random tests are susceptible to input mutation:
https://www.codewars.com/kata/reviews/66c60a5637fe77bccdaa1c0f/groups/66c60c253f48f5d4ca3f4177
Loading more items...