Sunday, April 22, 2012

Given a string. Tell its rank among all its permutations sorted lexicographically


No comments :