13 ms·Given the problem size is bounded, all solutions for solving this could be considered O(1).by ryao 2y agoGiven the problem size is bounded, all solutions for solving this could be considered O(1).