Retired
Pascal's triangle on a graph (retired)
Description:
If you don't know what pascal's triangle is,go to https://en.wikipedia.org/wiki/Pascal's_triangle to learn about it.
pascal's triangle can be represented on a graph like so:
^ 1 4 10 20
| 1 3 6 10
| 1 2 3 4
y 1 1 1 1
x --------->
which still follows the rule.Your job is to find the value of any value on this graph,given its coordinates
Ex:
solution(4,5):
^ 1 5 15 35
| 1 4 10 20
| 1 3 6 10
| 1 2 3 4
y 1 1 1 1
x --------->
The answer is 35 because the space 4 spaces right and 5 spaces up of the origin is 35 on the graph.
Expect x and y to be positive integers and their sum to be less than 30
Mathematics
Fundamentals
Similar Kata:
Stats:
Created | Jul 11, 2019 |
Warriors Trained | 367 |
Total Skips | 181 |
Total Code Submissions | 139 |
Total Times Completed | 61 |
Python Completions | 61 |
Total Stars | 4 |
% of votes with a positive feedback rating | 73% of 32 |
Total "Very Satisfied" Votes | 20 |
Total "Somewhat Satisfied" Votes | 7 |
Total "Not Satisfied" Votes | 5 |
Total Rank Assessments | 32 |
Average Assessed Rank | 6 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 7 kyu |