摘要: 题目: Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). You are given a targe 阅读全文
posted @ 2016-03-14 21:49 wangb021 阅读(150) 评论(0) 推荐(0)
摘要: 题目 :Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. 正确代码:package leetcode;public class newSetMatrixZeroe 阅读全文
posted @ 2016-03-14 18:07 wangb021 阅读(137) 评论(0) 推荐(0)
摘要: Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, 阅读全文
posted @ 2016-03-14 14:44 wangb021 阅读(128) 评论(0) 推荐(0)