Question: Write a function that returns True if a given string such as arrb6???oiuqwer???hhh8?, had a pair of numbers that was split exactly by 3 question

Write a function that returns "True" if a given string such as "arrb6???oiuqwer???hhh8?", had a pair of numbers that was split exactly by 3 question marks, and where the pair added up to 10. Please write this in Java and include possible optimizations, and also include the runtime and explanation of the runtime.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!