摘要: The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of the permutations in order,We get the following sequence (ie... 阅读全文
posted @ 2014-12-02 11:02 雄哼哼 阅读(193) 评论(0) 推荐(0) 编辑
摘要: Given amxnmatrix, if an element is 0, set its entire row and column to 0. Do it in place.二维数组中为0的元素,就把该元素所在的行和列都置为0思路:开个结构数组p,用p记录该二维数组中为0的点的i,j脚标。然后分... 阅读全文
posted @ 2014-12-02 10:11 雄哼哼 阅读(138) 评论(0) 推荐(0) 编辑