We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Math
- Triangle Quest
- Discussions
Triangle Quest
Triangle Quest
Sort by
recency
|
1051 Discussions
|
Please Login in order to post a comment
Here is HackerRank Triangle Quest in Python solution - https://programmingoneonone.com/hackerrank-triangle-quest-solution-in-python.html
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/
a = int(input())
for i in range(1,a): for j in range(i): print(i, end="") print()
why this not acceptable?
this is more of a math problems rather than python challenge tbh