class Solution:
    def bubbleSortOptimized(self, nums: List[int]) -> None:
        if len(nums) == 1:
            return nums
        else:
            swapped = False
            while not swapped:
                swapped = True
                for i in range(0, len(nums)-1):
                    if nums[i] > nums[i+1]:
                        swapped = False
                        nums[i], nums[i+1] = nums[i+1], nums[i]
@@ -51,28 +51,9 @@
 nums
-: List%5Bint%5D) -%3E None
+)
 :%0A  

Add dijkstras algorithm and depth first search in python