Skip to content

homework #2 done#4

Open
FrodoSur wants to merge 1 commit intoLevinMK23:masterfrom
FrodoSur:homework2
Open

homework #2 done#4
FrodoSur wants to merge 1 commit intoLevinMK23:masterfrom
FrodoSur:homework2

Conversation

@FrodoSur
Copy link

homework #2 done

public static int[][] FourthTask(int[][] x) {
for (int i = 0; i < x.length; i++) {
x[i][i] = 1;
x[i][x.length - i - 1] = 1;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

очень хорошо

sum1 += x[j];
}
for (int j = i + 1; j < x.length; j++) {
sum2 += x[j];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

оптимальное решение

}
return check;
}
public static int[] SeventhTask(int[] x, int m){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вы все таки сделали 1 по памяти и линию по времени)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants