about | help | code help+videos | done | prefs |
Which binomial coefficients are odd? Determine if nCr is odd for a given n and r. This program returns true when an entire row is odd - rows with mixed true/false will only test false examples (also won't test 1). Factorial won't work for numbers greater than 20, so you'll need to find another way. combIsOdd(32, 30) → false combIsOdd(256, 4) → false combIsOdd(5, 3) → false ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 200 Post-solution available
Copyright Nick Parlante 2017 - privacy