fixed dp exercises