Codeforces and Polygon may be unavailable from December 6, 19:00 (UTC) to December 6, 21:00 (UTC) due to technical maintenance. ×

HACKERRANK hour-of-code-round-ii

Revision en1, by saisumit, 2017-02-14 00:49:49

Hello people , I am stuck at this problem SITTING ARRANGEMENTS , i read the editorial but couldn't figure why the solution works, if anyone can provide an explanation for the solution , it would be great. Thanks in advance :)

Tags combinations, maths, recursion

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English saisumit 2017-02-14 00:55:51 6 Tiny change: 'xplanation for the s' -> 'xplanation/proof for the s'
en2 English saisumit 2017-02-14 00:52:31 745
en1 English saisumit 2017-02-14 00:49:49 353 Initial revision (published)