         super.tearDown()
     }
     func testLinkedList() {
-         let list  = LinkedList.init()
-         list.swapNeiber()
+        let list  = LinkedList.init()
+        list.swapNeiber()
         list.appendArrayToTail(array:[1,2,3,4,5,6])
 //        removeLinkedListElements(list:list, target: 6)
         list.swapNeiber()

        tree.preOrderRecursive(tree.root!)
        print("start")
        tree.preOrderNoneRecursive(tree.root!)
 print("end")

        
        
    }
    
    func testPostRecursive() {

    }
    func testReverse()
    {
        var str = "heazxcvbnm,"
        let result = reverseString(str:&str)
    XCTAssertEqual(result, ",mnbvcxzaeh")
    }
    func testcontainDup()
    {
        let result =   containsDuplicateII(array:[1,2,3,0,1],target:3)
        XCTAssertTrue(result)

    }
    func testBoom()
    {
     let result = numberOfBoomerangs(points:[[0,0],[1,0],[2,0]])
        XCTAssertEqual(result, [[[1, 0], [0, 0], [2, 0]], [[1, 0], [2, 0], [0, 0]]])
    }
    func  testintersection() {
//        intersectionOfTwoArrays(array1:[7,7,8,9],array2:[3,4,5,2])
        var  array1 = [7,7,8,9];
        var  array2 = [3,4,5,2,7,7,8];
        let result = intersectionOfTwoArrays2(array1:&array1,array2:&array2)
        XCTAssertEqual(result, [7, 8])

    }
    func testSubArraySum() {
        
        let  array1 = [1,2,3,10,4,5,6,7,8,9];
        let result = sizeofsunarraysum(array: array1,target: 11)
         XCTAssertEqual(result,2)
    }
    func testtwosum()
    {
        let array1 = [0,1,2,6,7,8,9,10];
        let result = twosumofarray(array: array1,target: 17)
          XCTAssertEqual(result,[4, 7])
    }
    func testMoveZeros() {
        var array1 = [0,1,0,2,0,0,0,33,44,88,0];
        let result = moveZeros(array: &array1);
        XCTAssertEqual(result,[1, 2, 33, 44, 88, 0, 0, 0, 0, 0, 0])

        let result2 = moveZeros2(array: &array1);
        XCTAssertEqual(result2,[1, 2, 33, 44, 88, 0, 0, 0, 0, 0, 0])

    }
    func testsortColors() {
        var  array1 = [0,1,0,2,0,0,0,1,2,1,0,2,2,1,0,0];
        let result = sortColorFunc2(array: &array1);
         XCTAssertEqual(result,[0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2])
    }
    func testQucikSort() {
        
