We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 688bcfc + ebc1241 commit 5827417Copy full SHA for 5827417
level-4/올바른-괄호의-갯수&12929&.js
@@ -0,0 +1,7 @@
1
+//https://github.com/codeisneverodd/programmers-coding-test
2
+//완벽한 정답이 아닙니다.
3
+//정답 1 - cg10036
4
+function solution(n) {
5
+ const fact = n => n ? BigInt(n) * fact(n - 1) : 1n;
6
+ return fact(n * 2) / (fact(n) * fact(n + 1));
7
+}
0 commit comments