Functionjosephusn = total person will kill every kth person, if k = 2, 2,4,6,... returns the mth killed person O(k log n)
Miscellaneous/Josephus Problem.cpp:5
Methodkthkth smallest element in [l, r] for array [1,2,1,3,5] 2nd smallest is 1 and 3rd smallest is 2
Strings/Number of Palindromes in Range.cpp:82