diff --git a/data_structures/binary_search_tree.cpp b/data_structures/binary_search_tree.cpp index ebcf2754e..947bb53d8 100644 --- a/data_structures/binary_search_tree.cpp +++ b/data_structures/binary_search_tree.cpp @@ -145,28 +145,28 @@ int main() { std::cin >> ch; int x; switch (ch) { - case 1: - std::cout << "\nEnter the value to be Inserted : "; - std::cin >> x; - Insert(root, x); - break; - case 2: - std::cout << "\nEnter the value to be Deleted : "; - std::cin >> x; - Remove(root, root, x); - break; - case 3: - BFT(root); - break; - case 4: - Pre(root); - break; - case 5: - In(root); - break; - case 6: - Post(root); - break; + case 1: + std::cout << "\nEnter the value to be Inserted : "; + std::cin >> x; + Insert(root, x); + break; + case 2: + std::cout << "\nEnter the value to be Deleted : "; + std::cin >> x; + Remove(root, root, x); + break; + case 3: + BFT(root); + break; + case 4: + Pre(root); + break; + case 5: + In(root); + break; + case 6: + Post(root); + break; } } while (ch != 0); diff --git a/data_structures/linkedlist_implentation_usingarray.cpp b/data_structures/linkedlist_implentation_usingarray.cpp index 837d9f65b..75d400d72 100644 --- a/data_structures/linkedlist_implentation_usingarray.cpp +++ b/data_structures/linkedlist_implentation_usingarray.cpp @@ -87,26 +87,26 @@ int main() { std::cout << "Enter Your choice" << std::endl; std::cin >> z; switch (z) { - case 1: - std::cout << "Enter the number you want to enter" << std::endl; - std::cin >> x; - insertAtTheBeginning(x); - break; - case 2: - std::cout << "Enter the number you want to enter" << std::endl; - std::cin >> y; - insertAtTheEnd(y); - break; - case 3: - std::cout - << "The linked list contains the following element in order" - << std::endl; - display(); - break; - case 4: - return 0; - default: - std::cout << "The entered choice is not correct" << std::endl; + case 1: + std::cout << "Enter the number you want to enter" << std::endl; + std::cin >> x; + insertAtTheBeginning(x); + break; + case 2: + std::cout << "Enter the number you want to enter" << std::endl; + std::cin >> y; + insertAtTheEnd(y); + break; + case 3: + std::cout + << "The linked list contains the following element in order" + << std::endl; + display(); + break; + case 4: + return 0; + default: + std::cout << "The entered choice is not correct" << std::endl; } }