首页
学习
活动
专区
工具
TVP
发布

leetcode_solutions

专栏作者
59
文章
38321
阅读量
18
订阅数
94. Binary Tree Inorder Traversal
根据中序遍历的顺序,对于任一结点,优先访问其左孩子,而左孩子结点又可以看做一根结点,然后继续访问其左孩子结点,直到遇到左孩子结点为空的结点才进行访问,然后按照相同的规则访问其 右子树。因此处理过程如下:
yesr
2020-05-04
2620
数据库事务的四种隔离级别
这是数据库最高的隔离级别,这种级别下,事务“串行化顺序执行”,也就是一个一个排队执行。
yesr
2019-04-22
7.4K0
238. Product of Array Except Self
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Oct31_Dec25/article/details/88976382
yesr
2019-04-19
3680
26. Remove Duplicates from Sorted Array
Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.
yesr
2019-03-20
3010
深入理解String,StringBuilder,StringBuffer
从上面的三个方法可以看出,无论是subString、concat还是replace操作都不是在原有的字符串上进行的,而是重新生成了一个新的字符串对象。也就是说进行这些操作后,最原始的字符串并没有被改变。
yesr
2019-03-20
4800
Letter Combinations of a Phone Number
Given a digit string, return all possible letter combinations that the number could represent.  A mapping of digit to letters (just like on the telephone buttons) is given below. 
yesr
2019-03-14
4390
【每天一道编程系列-2018.2.18】(Ans)
There 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)). 
yesr
2019-03-14
2640
【每天一道编程系列-2018.3.1】(Ans)
  Given an integer, convert it to a roman numeral.    Input is guaranteed to be within the range from 1 to 3999. 
yesr
2019-03-14
3310
【每天一道编程系列-2018.2.28】(Ans)
  Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a container, such that the container contains the most water.  Note: You may not slant the container. 
yesr
2019-03-14
2790
【每天一道编程系列-2018.2.27】(Ans)
  Implement regular expression matching with support for ‘.’ and ‘*’. ‘.’ Matches any single character. ‘*’ Matches zero or more of the preceding element.The matching should cover the entire input string (not partial). The function prototype should be: bool isMatch(const char *s, const char *p)    Some examples:    isMatch(“aa”,”a”) → false    isMatch(“aa”,”aa”) → true    isMatch(“aaa”,”aa”) → false    isMatch(“aa”, “a*”) → true    isMatch(“aa”, “.*”) → true    isMatch(“ab”, “.*”) → true    isMatch(“aab”, “c*a*b”) → true 
yesr
2019-03-14
2340
【每天一道编程系列-2018.2.22】(Ans)
  Implement atoi to convert a string to an integer.    Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input cases.    Notes: It is intended for this problem to be specified vaguely (ie, no given input specs). You are responsible to gather all the input requirements up front. 
yesr
2019-03-14
2980
167. Two Sum II - Input array is sorted(双向指针)
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.
yesr
2019-03-14
3300
119. Pascal's Triangle II(杨辉三角简单变形)
Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle.
yesr
2019-03-14
6620
【每天一道编程系列-2018.2.17】(Ans)
Write a program that outputs the number of an integer input in the opposite order.
yesr
2019-03-14
3650
Sum
【题目描述】 Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c +
yesr
2019-03-14
5460
深入理解字符串常量池
我们知道字符串的分配和其他对象分配一样,是需要消耗高昂的时间和空间的,而且字符串我们使用的非常多。JVM为了提高性能和减少内存的开销,在实例化字符串的时候进行了一些优化:使用字符串常量池。
yesr
2019-03-14
4870
118. Pascal's Triangle(暴力求解法)
Given a non-negative integer numRows, generate the first numRows of Pascal's triangle.
yesr
2019-03-14
4360
3. Longest Substring Without Repeating Characters(HashSet + 双指针)
Given a string, find the length of the longest substring without repeating characters.
yesr
2019-03-14
2900
7. Reverse Integer(注意越界问题)
Given a 32-bit signed integer, reverse digits of an integer.
yesr
2019-03-14
1K0
B树与B+树的区别
我们先来看看Stack Overflow上面是怎么解释的(没有梯子的,博主已经把回答copy下来了):
yesr
2019-03-14
4.6K0
点击加载更多
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档