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)


Comments

Popular posts from this blog

Recursive Sequence Geeks For Geeks Problem Of The Day 12-02-2024

Java Date And Time HackerRank

Array Formation HackerEarth