EDIT - Edit Distance Again
As any experienced programmer must know the famous problem of "Edit Distance", however this
problem is considered an “alternating chain” if you have alternately made case sensitive.
"AaAaAbB" "B" "a" "aBaCdEf"
Alternating chains are considered in our problem.
We only have one operation that is permitted in exchange for a lower or upper case Latin letter.
Given a string giving the minimum number of changes to be considered an alternating chain.
A string with no spaces line containing only uppercase and lowercase letters, one for each line of
maximum length 10 ^ 3 until end of file
For each line print the minimum number of changes to the chain is a "chain alternately"
Input: AaAaB ABaa a Output: 0 2 0
This is not even remotely a DP problem. Pure Ad-hoc.
it's an insult to dp if this belongs to dp category !!! :P
AC in one go :-)
Why is this problem even tagged as DP? It's should be ad-hoc.
dont know why using toupper/tolower is giving WA... but comparing by ASCII value works... wierd
give syntax of eof
every test right,but still got ac
I aggree with Avinash...I have to read the problem statement of codechef problem to understand the problem. Problem setter, from next time onwards, explain one good test case to make problem statement more clear.
easy one ... Tel Laga ke