Moving Stones Until Consecutive Leetcode Solution
Problem Statement In this problem, we are given three stones at positions a, b and c. We have to make them consecutive by performing the following step one or more times. In each step, We will pick a left stone or a right stone and put somewhere in the between …