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
Get step-by-step solutions from verified subject matter experts
