Find no of 2 wheeler and 4 wheeler corresponding to every element from a given array
Answers
Answered by
0
input: [6, 3, 2]
output: [2, 0, 2]
explanation: for 6: 1 4-wheeler and 1 2 wheeler. for 3: not possible so 0. for 2: only 1 2-wheeler is possible.
hope it helped you out
please mark as brainly
thanks
Similar questions