We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 950a03f commit 1b78c6dCopy full SHA for 1b78c6d
1 file changed
greedy_methods/rearranging_fruits.py
@@ -1,8 +1,6 @@
1
-from typing import List
2
from collections import defaultdict
3
4
-
5
-def min_cost(basket1: List[int], basket2: List[int]) -> int:
+def min_cost(basket1: list[int], basket2: list[int]) -> int:
6
n = len(basket1)
7
freq = defaultdict(int)
8
mn = float("inf")
0 commit comments