4 ms·You can do that for O(N), but the problem can be solved in O(k).by minitech 10mo agoYou can do that for O(N), but the problem can be solved in O(k).