Chinaunix首页 | 论坛 | 博客
  • 博客访问: 253832
  • 博文数量: 170
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1709
  • 用 户 组: 普通用户
  • 注册时间: 2014-05-06 18:01
文章分类

全部博文(170)

文章存档

2016年(11)

2015年(130)

2014年(29)

发布时间:2015-09-19 10:49:54

<br /><br />public class PartitionList {<br /><br /><br />public static void main(String[] args) {<br />// TODO Auto-generated method stub<br /><br /><br />}<br />public ListNode partition(ListNode head, int x) {<br />&nbsp; ListNode p=head;<br />&nbsp; &nbsp; &nbsp; &nbsp;ListNode prehe.........【阅读全文】

阅读(268) | 评论(0) | 转发(0)

发布时间:2015-09-19 10:49:29

//Largest Rectangle in Histogram My Submissions Question Solution&nbsp;<br />//Total Accepted: 44118 Total Submissions: 193905 Difficulty: Hard<br />//Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the h.........【阅读全文】

阅读(290) | 评论(0) | 转发(0)

发布时间:2015-09-19 10:48:46

import java.util.Stack;<br /><br /><br />public class MaximalRectangle {<br /><br /><br />public static void main(String[] args) {<br />// TODO Auto-generated method stub<br /><br /><br />}<br />public int maximalRectangle(char[][] matrix) {<br />&nbsp; &nbsp;int m=matrix.length;<br />.........【阅读全文】

阅读(253) | 评论(0) | 转发(0)

发布时间:2015-09-12 16:11:56

/Remove Duplicates from Sorted List My Submissions Question Solution&nbsp;<br />//Total Accepted: 74313 Total Submissions: 214827 Difficulty: Easy<br />//Given a sorted linked list, delete all duplicates such that each element appear only once.<br />//<br />//For example,<br />//Given 1-&gt;1-.........【阅读全文】

阅读(259) | 评论(0) | 转发(0)

发布时间:2015-09-12 10:56:55

//Remove Duplicates from Sorted Array II My Submissions Question Solution&nbsp;<br />//Total Accepted: 50992 Total Submissions: 167190 Difficulty: Medium<br />//Follow up for "Remove Duplicates":<br />//What if duplicates are allowed at most twice?<br />//<br />//For example,<br />//Given sort.........【阅读全文】

阅读(260) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册