அல்கோரிதம்greedy selection

Greedy selection

TT
Testlaa Team
May 14, 20261 min read

Extremal key — future options.

Try this in Python

nums = [3, 1, 4, 1, 5]
print(min(nums), max(nums))

Key takeaways

  • Discard argument.
  • Tuple sort keys.
  • Stable secondary.

Tags:

GreedyPythonமாணவர்கள்