1. You will be given formatted coordinates as a string, where x,y is now written as xy
2. You need to return an array of all the possible values of xy as x,y.
3. Note: A coordinate value is written in its shortest possible way, example: 1,3 not 1.0,3.0
4. A decimal is always preceeded by an integer value, 0.1 not .1
5. There are no extraneous zeros, 0.1 and not 000.1
3. Input and output is handled for you
4. It is a functional problem ,please do not modify main()
Input Format
Input is handled for you.
Output Format
Output handled
Constraints
4 <= S.length <= 12 String is preceeded and ends with brackets (Input String)
Notice
Try First, Check Solution later
1. You should first read the question and watch the question video.2. Think of a solution approach, then try and submit the question on editor tab.3. We strongly advise you to watch the solution video for prescribed approach.Example
Input
(456)
Output
[(4, 5.6), (4, 56), (4.5, 6), (45, 6)]