Hackerrank - Pascal's Triangle


Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /nfsmnt/hosting2_2/a/b/abebc507-bf25-4cf8-8cfa-a3d31b5acb3d/pidanic.com/web/wp-content/plugins/latex/latex.php on line 47

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /nfsmnt/hosting2_2/a/b/abebc507-bf25-4cf8-8cfa-a3d31b5acb3d/pidanic.com/web/wp-content/plugins/latex/latex.php on line 49

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /nfsmnt/hosting2_2/a/b/abebc507-bf25-4cf8-8cfa-a3d31b5acb3d/pidanic.com/web/wp-content/plugins/latex/latex.php on line 47

Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /nfsmnt/hosting2_2/a/b/abebc507-bf25-4cf8-8cfa-a3d31b5acb3d/pidanic.com/web/wp-content/plugins/latex/latex.php on line 49

Popis problému Celý popis zadania sa nacháza - Hackerrank. Riešenie Vytovril som rekurzívnu funkciu pre výpočet faktoriálu - . Potom vytvor všetky kombinácie medzi riadkami a stĺpcami. Pre vstupné číslo 4 výstup vyzerá nasledovne:

Potom aplikuj funkciu pre pascalov trojuholník Vytvoril som riešenie v programovacom jazyku Scala: Riešenie je dostupné aj na mojom GitHub […]