"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org

Sidd Kulk
Ranch Hand

Joined: Feb 20, 2007
Posts: 152

posted

0

Actually i am trying to develop an algorithm for a given problem, wherein i am supposed to separate a string in two parts based on a mathematical logic. I derived this formula to separate the string. P is the length of full string and n is the length of string required to be extracted. But this equation is ver confusing. Any help will be appreciated.