This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//--------------------------- SELECTION SORT ---------------------------// | |
#include<iostream> | |
using namespace std; | |
void selection(int arr[], int n){ | |
// First objective is to find the INDEX of the min element | |
for(int i=0;i<n-1;i++){ | |
int min_ele_index = i; | |
for(int j = i+1;j<n;j++){ | |
if(arr[j] < arr[min_ele_index]){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
issues: | |
types: [labeled] | |
jobs: | |
automate_invite: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Invite on label | |
uses: vj-abigo/[email protected] |