Is peeking at the solution of an algorithm problem after few attempts the correct way of learning?
After learning an algorithm, I can solve plain problems on that algorithm. But I can't solve a problem which has a few modifications to that algorithm, which really gives me pain. What approach should I follow to solve a modified problem of an algorithm?