Description
You are given an n x n binary matrix grid where 1 represents land and 0 represents water.
An island is a 4-directionally connected group of 1’s not connected to any other 1’s. There are exactly two islands in grid.
You may change 0’s to 1…
//数组--冒泡排序 //1.经典错误版
#include<stdio.h> void bubble_sort(int arr[]) { //确定冒泡函数的趟数(10个元素,9趟冒泡排序) int i 0; int sz sizeof(arr) / sizeof(arr[0]);//10 算出了1 这里错了 传参错了 for (i 0; i < sz…