If i am running my code then it is showing correct Output but when i click submit button then online judge is not accepting my code.
Code Link : https://ide.codingblocks.com/s/154421
If i am running my code then it is showing correct Output but when i click submit button then online judge is not accepting my code.
Code Link : https://ide.codingblocks.com/s/154421
If there are no repetitions, then current becomes double of prev because we are adding current character at the end of all prev subsequences.
If current Character is already occurred then , then we subtract all distinct subsequences ending with previous occurrence which is stored in the isAlphaOccured array.
What error are you getting?
ide hang ho jata he.
Your logic is correct
I have verified your code with reference to geeksforgeeks. Donβt worry if your ide hangs. The editorial solution also hangs in hackerblocks but your logic is correct.
Ok. I hope the problem of ide for this particular problem will be solved as soon as possible so that no other student will face this issue in future.
Thank you,
Yes, The problem will resolved for sure.