Skip to content

Instantly share code, notes, and snippets.

View Deathnerd's full-sized avatar

Wes Gilleland Deathnerd

  • eLink Design
  • Lexington, KY
View GitHub Profile
public int maxSub(int m) {
int x = A[0][0];
int finalIndex=1;
int index = 0;
for (int i = 1; i <= m; i++) {
for (int j = 0; j < A.length; j++) {
index++;
int row = (index / size);
int column = (index % size)-1;
System.out.println("Row= ("+index+"/"+size+")="+row);
void bubbleSort(){
bubbleSort(n-1, n-1);
}
void bubbleSort(int y, int x){
if(x==0 && y==0)
return;
for(int i=0; i <= n-1; i++){ //loop through the rows
for(int j=0; j<=n-1; j++){ //loop through the columns