easy难度,将两个已排序链表合并成一个 我用的最直接的方法,看到了一个五行的递归[作者空间]
今天是两道easy难度的题,印象中是当初学数据结构时候讲过的栗子。括号匹配,用栈来处理,需要注意一下越界问题,[作者空间]
一下子就AC了,幸福来的太突然? 再记录一个以前会过现在忘了,又看到的方法链接[作者空间]
电话键盘上有9个数字,其中2~9分别代表了几个字母,如2:ABC,3:DEF......等等。给定一个数字序列,输...[作者空间]
找出列表中所有和为0的三个数。大致思想应该是一样的,列表排序,对于每个元素,从两边开始向内,找和为0的元素 最后一...[作者空间]
目前为止碰到的做的最顺利的题,没有之一,虽然还是看了答案。。Given n non-negative intege...[作者空间]
'.' Matches any single character.'*' Matches zero or more...[作者空间]
Example: Input: "babad" Output: "bab" Note: "aba" is also...[作者空间]
There are two sorted arrays nums1 and nums2 of size m and...[作者空间]
Given a string, find the length of the longest substring ...[作者空间]
这个思路是这位神人给的StefanPochmann,在讨论区里面 大神说,之所以可以这么做是因为python可以存...[作者空间]
You are given two non-empty linked lists representing two...[作者空间]