【文件属性】:
文件名称:leetcode伪代码-flip-an-image:翻转图像
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-30 19:58:45
系统开源
leetcode伪代码flipping-an-image
题目来源:
原文:
Given
a
binary
matrix
A,
we
want
to
flip
the
image
horizontally,
then
invert
it,
and
return
the
resulting
image.
To
flip
an
image
horizontally
means
that
each
row
of
the
image
is
reversed.
For
example,
flipping
[1,
1,
0]
horizontally
results
in
[0,
1,
1].
To
invert
an
image
means
that
each
0
is
replaced
by
1,
and
each
1
is
replaced
by
0.
For
example,
inverting
[0,
1,
1]
results
in
[1,
0,
0].
解读:
给定二元矩阵A,
目标是要把矩阵做两个操作
第一个是flip
就是让原本每个A[i][j]
=
A[i][len
【文件预览】:
flip-an-image-master
----.gitignore(269B)
----flipAndInvertImage_test.go(776B)
----flipAndInvertImage.go(339B)
----README.md(4KB)