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

全部博文(170)

文章存档

2016年(11)

2015年(130)

2014年(29)

发布时间:2015-04-06 10:11:01

Generate Parentheses Total Accepted: 40282 Total Submissions: 124502My SubmissionsQuestion Solution Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses..........【阅读全文】

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

发布时间:2015-04-05 20:56:36

在使用迭代器时 不能改变原来的值,不能改变set值  Iterator it=set.iterator();          while(it.hasNext())          {              String o=(String)it.next();              .........【阅读全文】

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

发布时间:2015-04-02 19:08:54

import java.util.HashMap;import java.util.Map;import java.util.Stack;//Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.////The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "([)]" a.........【阅读全文】

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

发布时间:2015-04-02 15:38:55

/Remove Nth Node From End of List Total Accepted: 46481 Total Submissions: 167543 My Submissions Question Solution //Given a linked list, remove the nth node from the end of list and return its head.////For example,////   Given linked list: 1->2->3->4->5, and n = 2.////   After.........【阅读全文】

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

发布时间:2015-04-02 15:23:09

mport java.util.ArrayList;import java.util.Arrays;import java.util.List;//Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.////Note://Elements in a quadruplet (a,.........【阅读全文】

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

登录 注册