Get implementations of algorithms with explanations.
{{algorithm_name}}Algorithm name
Example: Binary Search
{{language}}Programming language
Example: TypeScript
{{purpose}}Use case
Example: Search sorted array
{{time_complexity}}Time complexity
Example: O(log n)
{{space_complexity}}Space complexity
Example: O(1)
{{additional_requirements}}Other requirements
Example: Handle duplicates
Implement stable Merge Sort in Python with O(n log n) time and O(n) space complexity.