728x90
hackerrank apple and orange
-
[HackerRank] Apple and Orange c++Coding Test/HackerRank 2022. 7. 19. 13:47
Problem Sam's house has an apple tree and an orange tree that yield an abundance of fruit. Using the information given below, determine the number of apples and oranges that land on Sam's house. In the diagram below: The red region denotes the house, where s is the start point, and t is the endpoint. The apple tree is to the left of the house, and the orange tree is to its right. Assume the tree..