- 博客(4)
- 收藏
- 关注
原创 leetcode打卡 Longest Valid Parentheses
题目Given a string containing just the characters'(' and')', find the length of the longest valid (well-formed) parentheses substring.大意就是:给定一个只包含 '('和 ')' 的字符串,找出最长的包含有效括号的子串的长度。示例1:Input: "(()"Ou...
2018-10-29 12:40:09 139
原创 LeetCode 打卡 SameTree
题目Given two binary trees, write a function to check if they are the same or not.Two binary trees are considered the same if they are structurally identical and the nodes have the same value.大意就是判断给...
2018-10-21 19:13:16 100
原创 Spring注解开发之生命周期函数
Spring创建和销毁容器对象时会调用对象的创建和销毁函数,我们可以在这些生命周期函数中加入一些业务处理,去完成一些特定的功能生命周期-@Bean指定初始化和销毁方法.我们可以在@Bean组件中指定组件的init-method函数和destroy-method函数,在init-method和destroy-method函数中指定我们的初始化逻辑和销毁逻辑public class Car {...
2018-10-11 23:52:34 744
原创 leetcode打卡之ZigZag Conversion
题目The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P L S I ...
2018-10-11 20:13:51 139
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人