https://leetcode.com/problems/dungeon-game/The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The du...
分类:
其他好文 时间:
2015-12-02 11:58:36
阅读次数:
165
Cuboid routeA spider, S, sits in one corner of a cuboid room, measuring 6 by 5 by 3, and a fly, F, sits in the opposite corner. By travelling on the s...
分类:
其他好文 时间:
2015-11-27 20:01:21
阅读次数:
231
题目:Find the total area covered by tworectilinearrectangles in a2Dplane.Each rectangle is defined by its bottom left corner and top right corner as sho...
分类:
其他好文 时间:
2015-11-25 06:37:50
阅读次数:
134
图像的翻转只能分为以x轴或y轴翻转 其中turn_x函数是以x轴 turn_y是以y轴
分类:
其他好文 时间:
2015-11-24 14:20:04
阅读次数:
191
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p...
分类:
其他好文 时间:
2015-11-22 12:37:46
阅读次数:
133
matrixProblem DescriptionGiven a matrix withnrows andmcolumns (n+mis an odd number ), at first , you begin with the number at top-left corner (1,1) an...
分类:
其他好文 时间:
2015-11-22 00:17:02
阅读次数:
211
Problem DescriptionGiven a matrix with n rows and m columns ( n+m is an odd number ), at first , you begin with the number at top-left corner (1,1) an...
分类:
其他好文 时间:
2015-11-21 22:35:06
阅读次数:
196
本文转载是网络,只叙述方法,,,第一问:Turn off page allocation in xv6修改sysproc.c中的sys_sbrk()函数即可: 1 int sys_sbrk(void) 2 { 3 int addr; 4 int n; 5 if(a...
分类:
其他好文 时间:
2015-11-19 00:24:18
阅读次数:
387
Given a 2D matrixmatrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1,col1) and lower right corner (row2,c...
分类:
其他好文 时间:
2015-11-18 23:01:05
阅读次数:
137
Given a 2D matrixmatrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1,col1) and lower right corner (row2,c...
分类:
其他好文 时间:
2015-11-14 06:29:27
阅读次数:
467