题出自https://leetcode.com/problems/rotate-image/ 内容为: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up: Could you do this in-place? 简单的说就是给出一个n*n的二维数组,然后把这个数组进行90度顺时针旋转,而且不能使用额外的存储空间. 最初拿到这道题…
叠筐 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 12160 Accepted Submission(s): 3136 Problem Description 须要的时候,就把一个个大小差一圈的筐叠上去,使得从上往下看时.边筐花色交错.这个工作如今要让计算机来完毕,得看你的了. Input 输入是一个个的三元组,各自是.外…