matri

不懂程序看的明白《黑客帝国》吗?

前段时间出差周末没事就在酒店又把黑客帝国重温了一遍,不看不要紧,十年后再看发现以前对这部电影的理解完全错了。 《黑客1》是 1999 年出的,我还在读高中,第一次看还在学校附近的录像厅,枪版。 整个画面黑漆漆的,看了不到半小时直接睡过去了,醒来时已经是最后的高潮枪战部分,感觉结尾打斗好看,剧情不懂。 2003 年《黑客2&3》一起推出后,又连起来看了一遍,老实说当时很多概念

[HackerRank] Diagonal Difference

ProblemGiven a square matrix of size N x N, calculate the absolute difference between the sums of its diagonals.Input FormatThe first line contains a single integer, N. The next N lines de

221. Maimal Square

题目:Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the following matrix:1 0 1 0 01 0 1 1 11 1 1 1 11 0 0