Disappearing Elements – codegolf.stackexchange.com

Given a string S and a list of indices X, modify S by removing the element at each index of S while using that result as the new value of S.

For example, given S = ‘codegolf’ and X = [1, 4, 4, 0, 2],

For Get Answer – Click here

Leave a Reply

Your email address will not be published. Required fields are marked *