Finally wait is over , and King is back ....sir please upload the videos of theory of computation,computer networks, microprocessors ....4th semester subject 🙏🙏🙏 Keep it up
@yashpreetsinghkalsi53808 ай бұрын
You are great
@souvikmandal7775Ай бұрын
You are best dada❤
@AjayKumar-cq7mz9 ай бұрын
correct code in C of the insertion sort algo void insertionSort(int A[], int n) { int i, j, temp; for (i = 1; i < n; i++) { temp = A[i]; for (j = i - 1; j >= 0; j--) { if (A[j] > temp) { A[j + 1] = A[j]; A[j] = temp; } else { break; } } } }
@AbhishekYadav-cl4cn28 күн бұрын
Apne code ko kuch es tarah bhi likh sakte ho last wala line of code arr[j+1]=num; ko inner loop ke bahar likhna hai 👉 void insertionSort(int arr[], int n){ int i, j, num; for (i = 1; i < n; i++) { num = arr[i]; j = i-1; for(j=i-1; j>=0; j--){ if(arr[j] > num){ arr[j+1] = arr[j]; } else{ break; } } arr[j+1]=num; } }