Remix.run Logo
minitech 2 days ago

You can do that for O(N), but the problem can be solved in O(k).