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

Perfect Sum Problem Geeks for Geeks

Array Formation HackerEarth

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