I recently found a contest problem that asks you to compute the minimum number of characters that must be inserted (anywhere) in a string to turn it into a palindrome.
Assuming n=B-A+1, I need to derive the recurrence relation of this algorithm: void r开发者_如何学Cecurringalgorithm(int *a, int A, int B){
I\'m switching my app\'s calen开发者_如何学JAVAdar from Telerik Scheduler to jQuery fullcalendar. I\'m storing recurring events in the db using iCal RRULEs.
Consider this example : T(n) = T(7n/8) + 2n I assumed T(1) = 0 and tried to solve it in the following way