摘要: 给定一个n*m的二维整数数组,用来表示一个迷宫,数组中只包含0或1,其中0表示可以走的路,1表示不可通过的墙壁。 最初,有一个人位于左上角(1, 1)处,已知该人每次可以向上、下、左、右任意一个方向移动一个位置。 请问,该人从左上角移动至右下角(n, m)处,至少需要移动多少次。 数据保证(1, 1 阅读全文
posted @ 2021-02-18 22:21 coderJ_ONE 阅读(51) 评论(0) 推荐(0)
摘要: Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, a binary tree can be u 阅读全文
posted @ 2021-02-18 21:22 coderJ_ONE 阅读(44) 评论(0) 推荐(0)
摘要: Telefraud(电信诈骗) remains a common and persistent problem in our society. In some cases, unsuspecting victims lose their entire life savings. To stop th 阅读全文
posted @ 2021-02-18 21:14 coderJ_ONE 阅读(121) 评论(0) 推荐(0)
摘要: Zhejiang University is about to celebrate her 122th anniversary in 2019. To prepare for the celebration, the alumni association (校友会) has gathered the 阅读全文
posted @ 2021-02-18 21:05 coderJ_ONE 阅读(80) 评论(0) 推荐(0)
摘要: Sexy primes are pairs of primes of the form (p, p+6), so-named since "sex" is the Latin word for "six". (Quoted from http://mathworld.wolfram.com/Sexy 阅读全文
posted @ 2021-02-18 20:54 coderJ_ONE 阅读(136) 评论(0) 推荐(0)