
【OJ】
文章平均质量分 76
菜的抠脚弟弟
本人现就职于国内某top电商公司,有相应合作及学术交流,可联系邮箱305172521@qq.com
展开
-
[Hard]Median of Two Sorted Arrays
Median of Two Sorted ArraysThere are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).Exam原创 2017-02-15 11:39:31 · 346 阅读 · 0 评论 -
[Medium]Add Two Numbers
Add Two NumbersYou are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two number原创 2017-02-13 21:09:25 · 534 阅读 · 0 评论 -
[Easy]Two Sum
[Easy]Two SumGiven an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use原创 2017-02-13 21:02:01 · 421 阅读 · 0 评论 -
java利用栈实现括号()[]匹配问题
描述 现在,有一行括号序列,请你检查这行括号是否配对。 输入第一行输入一个数N(0 输出每组输入数据的输出占一行,如果该字符串中所含的括号是配对的,则输出Yes,如果不配对则输出No 样例输入 3 [(]) (]) ([[]()]) 样例输出 No No Yes 解法一: 常规思路,对单个字符进行比较处理,不提供源代码 解法二:原创 2015-09-05 18:13:57 · 3463 阅读 · 0 评论