
You are given 'X', representing the speed of an object in kmph.
Convert the speed to m/sec. Your result should be accurate up to 3 decimal places.
The first line of input contains a single integer 'X', which denotes the speed of the object in kmph.
Output Format :
Return the speed of the object in m/sec.
Note :
You don’t need to print anything. Just implement the given function.
10 <= 'X' <= 10^9
Time Limit: 1 sec
18
5
120
33.33
Speed (m/sec) = Speed(kmph) * 5 / 18
Approach:
Algorithm:
We only perform a mathematical operation.
Thus, the overall time complexity is of the order O(1).
We do not use any extra space.
Thus, the overall space complexity is of the order O(1).