متقدم
Code Snippets — Python
Practice typing real-world Python code
0كلمة/دقيقة
100%الدقة
1:00الوقت المتبقي
class Node: def __init__(self, value): self.value = value; self.next = None
from typing import List
def quicksort(arr: List[int]) -> List[int]: return arr if len(arr) <= 1 else quicksort([x for x in arr[1:] if x < arr[0]]) + [arr[0]] + quicksort([x for x in arr[1:] if x >= arr[0]])
أكمل الاختبار لفتح النتائج
أكمل هذا الدرس لتحصل على شهادتك المجانية في الكتابة.