Skip to content

Instantly share code, notes, and snippets.

View RiyaadHossain's full-sized avatar
🎯
Looking for new opportunities

Riyad Hossain RiyaadHossain

🎯
Looking for new opportunities
View GitHub Profile
#include <stdio.h>
void sort(int *arr, int n)
{
for (int i = 0; i < n - 1; i++)
{
int targetIdx = i;
for (int j = i + 1; j < n; j++)
{
if (targetIdx < arr[j])