diff --git a/README.md b/README.md index b888d36f..48050800 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ The directory tree has the following convention of `category/language/problem`, A unit `problem` must conform to the following specifications: - The name should be in lowercase. (**Eg.** `palindrome/`, `binary-search.cpp` etc.). -- Each word must be seperated by a **dash** or a **hyphen** (`-`). +- Each word must be separated by a **dash** or a **hyphen** (`-`). **If you have a problem that belongs to a new *topic* or *category* than one which are present:** 1. Create a new folder and an index for it inside (a readme, `README.md` file). diff --git a/graphs/c-or-cpp/bellman-ford.cpp b/graphs/c-or-cpp/bellman-ford.cpp index 12890e35..da06d1e4 100644 --- a/graphs/c-or-cpp/bellman-ford.cpp +++ b/graphs/c-or-cpp/bellman-ford.cpp @@ -77,7 +77,7 @@ int main() vectordist; bool neg = bellman_ford(graph,V,s,dist); - //if no negative weigth cycle is found... + //if no negative weigt cycle is found... if(neg) { cout<<"vertex Dist from Source\n"; @@ -89,4 +89,4 @@ int main() return 0; -} \ No newline at end of file +} diff --git a/linked-lists/c-or-cpp/Insert_and_delete_beginning.c b/linked-lists/c-or-cpp/Insert-and-delete-beginning.c similarity index 93% rename from linked-lists/c-or-cpp/Insert_and_delete_beginning.c rename to linked-lists/c-or-cpp/Insert-and-delete-beginning.c index 0a8fb7a0..22d0d163 100644 --- a/linked-lists/c-or-cpp/Insert_and_delete_beginning.c +++ b/linked-lists/c-or-cpp/Insert-and-delete-beginning.c @@ -15,7 +15,7 @@ struct node *current = NULL ; //Function to Print the Linked List void printList(){ printf("\nItem in the Linked List are : "); - // Intialize the ptr(pointer) with head location . + // Initialize the ptr(pointer) with head location . struct node *ptr = head ; // While Loop until we encounter a Node which is NULL . // NULL , signifies we are the end of the list . @@ -34,7 +34,7 @@ void insertBeg(int data){ link->data = data ; //Point the link's pointer to the current head link->next = head ; - //Update the Head to the node we want to insert at the beggining + //Update the Head to the node we want to insert at the begining head = link ; } diff --git a/searching/c-or-cpp/linear-search.cpp b/searching/c-or-cpp/linear-search.cpp index f35d7236..5340e643 100644 --- a/searching/c-or-cpp/linear-search.cpp +++ b/searching/c-or-cpp/linear-search.cpp @@ -19,9 +19,9 @@ int main() cout<>key; - cout<<"the inputed no is at position \n"; + cout<<"the inputted no is at position \n"; for(i=0;iarr[j+1]) - { // swaping array elements + { // swapping array elements temp = arr[j]; arr[j] = arr[j+1]; arr[j+1] = temp; @@ -30,4 +30,4 @@ int main() cout<