Sort by

recency

|

6 Discussions

|

  • + 0 comments

    I found this challenge quite interesting. It really made me think about the different ways to approach the problem. I'm looking forward to seeing the solutions from others!

  • + 0 comments

    do do do dododo

  • + 0 comments

    thanks for the info

  • + 1 comment

    Why you can apply these calculations in practical terms. I enjoy studying algebra analytics because I often use formulas when doing sports prediction calculations. You can see something similar here - https://1xbet.com.gh/ Any analyst must be a good psychologist and a good mathematician. This gives the most reliable result.

  • + 0 comments

    I used this recursive code but not passing all test cases:

    def hrank(x, k):
        if 0 <= x < k:
            return 1
        elif (x >= k) and (x % k == 0):
            return (hrank(x - k, k) + hrank(x / k, k))
        else:
            return hrank(x-1, k)
    
    
    k, x = map(int, raw_input().split()) 
    
    print hrank(x, k)