Triangle Quest

Sort by

recency

|

1051 Discussions

|

  • + 0 comments

    Here is HackerRank Triangle Quest in Python solution - https://programmingoneonone.com/hackerrank-triangle-quest-solution-in-python.html

  • + 0 comments

    for i in range(1,int(input())): #More than 2 lines will result in 0 score. Do not leave a blank line also print(((10**i - 1)//9 )*i )

    check repunit primes - https://www.geeksforgeeks.org/repunit-primes/

  • + 0 comments

    a = int(input())

    for i in range(1,a): for j in range(i): print(i, end="") print()

    why this not acceptable?

  • + 0 comments
    for i in range(1,int(input())): 
        print(int(i*(1+pow(10,1)*max(min(1, i-1), 0)+pow(10,2)*max(min(1, i-2), 0)+pow(10,3)*max(min(1, i-3), 0)+pow(10,4)*max(min(1, i-4), 0)+pow(10,5)*max(min(1, i-5), 0)+pow(10,6)*max(min(1, i-6), 0)+pow(10,7)*max(min(1, i-7), 0)+pow(10,8)*max(min(1, i-8), 0))))
    
  • + 0 comments

    this is more of a math problems rather than python challenge tbh