refactor 1182, no need to sort indices
refactor 1182, no need to sort indices

fishercoder1534/Leetcode,fishercoder1534/Leetcode,fishercoder1534/Leetcode,fishercoder1534/Leetcode,fishercoder1534/Leetcode