Absolute Value Geeks For Geeks
Problem Link:
Absolute Value | Practice | GeeksforGeeks
Solution:
class Solution {
public int absolute(int I) {
return Math.abs(I);
}
}
Time:O(1)
Space:O(1)
Auxillary Space:O(1)
Problem Link:
Absolute Value | Practice | GeeksforGeeks
Solution:
class Solution {
public int absolute(int I) {
return Math.abs(I);
}
}
Time:O(1)
Space:O(1)
Auxillary Space:O(1)
Comments
Post a Comment