Sort by

recency

|

625 Discussions

|

  • + 0 comments

    Here is problem solution in python, java, c++, C and javascript - https://programmingoneonone.com/hackerrank-day-17-more-exceptions-30-days-of-code-solution.html

  • + 0 comments

    HOW CAN I RECOVER A STOLEN BTC/USDT/ETH? HIRE FIXER WALLET RETRIEVAL Never took much time for me to be able to recover a stolen bitcoin worth of $124k. Reaching out to FIXER WALLET RETRIEVAL, one of the trusted and reputable hackers out here can save you the energy of becoming a stranded victim of crypto fraud. Here is how to contact these hackers; Email fixerwalletretrieval@fixer.co.s

  • + 2 comments
    class Calculator:
        def power(self, n:int, p:int) -> int:
            assert n >= 0 and p >= 0, "n and p should be non-negative"
            
            return n**p
    
  • + 0 comments
    class Calculator:
        def power(self, n, p):
            if n < 0 or p < 0:
                raise Exception("n and p should be non-negative")
            return n ** p  
    
  • + 0 comments

    Python:

    class Calculator:
        def init(self): pass
    
        def power(self,n,p):
        if n < 0 or p < 0:
            raise ValueError('n and p should be non-negative') 
        return n ** p