Given an array of strings arr[], consisting of N strings each representing dot separated numbers in the form of software versions.
Input:_ arr[] = {“1.1.2”, “0.9.1”, “1.1.0”}_
_Output: _“0.9.1” “1.1.0” “1.1.2”
_Input: _arr[] = {“1.2”, “0.8.1”, “1.0”}
_Output: _“0.8.1” “1.0” “1.2”
**Approach: **Follow the steps below to solve the problem:
#arrays #mathematical #sorting #strings #google #interview-preparation #java-comparator