subject
Computers and Technology, 06.08.2019 17:10 yuki430

Given an array of characters where each character represents a fruit tree, you are given two baskets and your goal is to put maximum number of fruits in each basket. the only restriction is that each basket can have only one type of fruit. you can start with any tree, but once you have started you can’t skip a tree. you will pick one fruit from each tree until you cannot, i. e., you will stop when you have to pick from a third fruit type. write a function to return the maximum number of fruits in both the baskets.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:50
Which of the following had the greatest influence on opening the internet to the generly public
Answers: 1
question
Computers and Technology, 22.06.2019 09:00
Designing a mobile web page is a little different from designing a regular web page. name at least three features that should be considered when designing a website that is mobile phone-friendly, and briefly explain why they are important.
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
Which option correctly describes a dbms application? a. software used to manage databases b. software used to organize files and folders c. software used to develop specialized images d. software used to create effective presentations
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
To produce a starlight effect in her photograph, lina should choose the filter for her camera.
Answers: 1
You know the right answer?
Given an array of characters where each character represents a fruit tree, you are given two baskets...
Questions
question
Mathematics, 31.03.2021 23:00
question
Biology, 31.03.2021 23:00
question
Chemistry, 31.03.2021 23:00
question
English, 31.03.2021 23:00
question
Mathematics, 31.03.2021 23:00
Questions on the website: 13722363