4 kyu
One Line Task: Mathematical Combination
Description:
Task
Write a function that takes two non-negative integers n
and k
, and computes the mathematical combination .
Examples
Note
.
.
Lines of your code must not exceed
1
.
Length of your code must not exceed
44
. (Record: @monadius's41
characters)Disabled modules are
numpy
,scipy
,sklearn
,gmpy2
,math
andsys
.Disabled built-in functions are
open
,exec
,eval
,globals
,locals
andexit
.Credits to @Blind4Basics's module forbidder.
Tests
- For all tests, .
108
fixed tests, including6
example tests,93
mini tests and9
big tests.300
small random tests, .20
big random tests, .One Last Test
, .
Restricted
Performance
Mathematics
Similar Kata:
Stats:
Created | Feb 17, 2024 |
Published | Feb 17, 2024 |
Warriors Trained | 427 |
Total Skips | 15 |
Total Code Submissions | 869 |
Total Times Completed | 31 |
Python Completions | 31 |
Total Stars | 21 |
% of votes with a positive feedback rating | 100% of 9 |
Total "Very Satisfied" Votes | 9 |
Total "Somewhat Satisfied" Votes | 0 |
Total "Not Satisfied" Votes | 0 |
Total Rank Assessments | 4 |
Average Assessed Rank | 4 kyu |
Highest Assessed Rank | 3 kyu |
Lowest Assessed Rank | 4 kyu |