- 博客(9)
- 资源 (2)
- 收藏
- 关注
原创 LeetCode刷题Medium篇寻找字符串中最长的回文子串(动态规划解法)
题目Given a strings, find the longest palindromic substring ins. You may assume that the maximum length ofsis 1000.Example 1:Input: "babad"Output: "bab"Note: "aba" is also a valid answer....
2018-10-31 19:52:27 1118
原创 LeetCode刷题EASY篇如何快速反转一个字符串
题目Write a function that takes a string as input and returns the string reversed.Example 1:Input: "hello"Output: "olleh"Example 2:Input: "A man, a plan, a canal: Panama"Output: "amanaP :...
2018-10-31 19:47:44 466
原创 LeetCode刷题EASY篇反转一个带符号的整数
题目Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:Input: 120Output: 21Note:Assume we are...
2018-10-31 18:12:16 281
原创 java架构篇NodeJS,Vue,前后端分离都是什么鬼
1.Node.JSnode.js是开源的,跨平台的,浏览器之外的Js运行环境。前后端统一语言开发。主要特点事件驱动 异步IO 基于Google的V8引擎,V8引擎执行Javascript的速度非常快,性能非常好 单线程,单进程优点:容易学习,全栈开发----统一语言 高并发----异步IO 高性能 ---JS直接转换为机器码,处理性能更高 高吞吐量和扩展性 适合IO密集...
2018-10-29 12:07:28 2404
原创 LeetCode刷题Medium篇两个倒序链表数字相加
题目You 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 numbers and retu...
2018-10-26 10:30:01 411
原创 LeetCode刷题Medium篇int型数组,求k个连续数的最大和(滑动窗口解法)
题目Given an array of integers of size ‘n’.Our aim is to calculate the maximum sum of ‘k’ consecutive elements in the array.Input : arr[] = {100, 200, 300, 400} k = 2Output : 700Input ...
2018-10-25 17:45:11 849
原创 LeetCode刷题Medium篇寻找字符串中最长的不重复子串(滑动窗口解法)
题目Given a string, find the length of the longest substring without repeating characters.Example 1:Input: "abcabcbb"Output: 3 Explanation: The answer is "abc", with the length of 3. Example...
2018-10-19 14:55:18 1169
原创 LeetCode刷题Medium篇int型数组,求满足和等于k的连续子数组个数
题目Given an array of integers and an integer k, you need to find the total number of continuous subarrays whose sum equals to k.Example 1:Input:nums = [1,1,1], k = 2Output: 2Note:The lengt...
2018-10-16 17:01:30 1536
原创 LeetCode刷题Easy篇在整型数组寻找两个数的和等于指定数
题目:Given 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 the ...
2018-10-12 11:39:46 374
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人