Techone's Blog

热爱生活 憧憬未来


  • 首页

  • 关于

  • 标签

  • 分类

  • 归档

  • 公益404

  • 搜索

【LeetCode 5】Longest Palindromic Substring 最长回文子串

发表于 2018-08-12 | 分类于 LeetCode
[LeetCode 5]Longest Palindromic Substring 最长回文子串问题描述:给定一个字符串 s,找到 s 中最长的回文子串。你可以假设 s 的最大长度为1000。 说明:解集不能包含重复的子集。 示例1:123输入: "babad"输出: &qu ...
阅读全文 »

【LeetCode 3】Longest Substring Without Repeating Characters 无重复字符的最长子串

发表于 2018-07-16 | 分类于 LeetCode
[LeetCode 3]Longest Substring Without Repeating Characters 无重复字符的最长子串Problem description:Given a string, find the length of the longest substring with ...
阅读全文 »

浏览器下载文件

发表于 2018-07-10 | 分类于 Java
浏览器下载文件solution:读取文件,设置响应头,写入返回的流前端用http请求而不能用ajax请求(JQuery的ajax函数的返回类型只有xml、text、json、html等类型,没有“流”类型,所以我们要实现ajax下载,不能够使用相应的ajax函数进行文件下载。) (前端用a标签自动点 ...
阅读全文 »

【LeetCode 377】 Combination Sum IV 组合总和 IV

发表于 2018-06-01 | 分类于 LeetCode
[LeetCode 377]Combinatiion Sum IV 组合总和 IVProblem decription:Given an integer array with all positive numbers and no duplicates, find the number of pos ...
阅读全文 »

【LeetCode 394】 Decode String 字符串解码

发表于 2018-06-01 | 分类于 LeetCode
[LeetCode 394]Decode String 字符串解码Problem decription:Given an encoded string, return it’s decoded string. The encoding rule is: k[encoded_string], wher ...
阅读全文 »

【LeetCode 393】UTF-8 Validation UTF-8 编码验证

发表于 2018-05-25 | 分类于 LeetCode
[LeetCode 393]UTF-8 Validation UTF-8 编码验证Problem description:A character in UTF8 can be from 1 to 4 bytes long, subjected to the following rules: For ...
阅读全文 »

【LeetCode 363】Max Sum of Rectangle No Larger Than K

发表于 2018-05-25 | 分类于 LeetCode
[LeetCode 363] Max Sum of Rectangle No Larger Than KProblem description:Given a non-empty 2D matrix matrix and an integer k, find the max sum of a rec ...
阅读全文 »

【LeetCode 70】Climbing Stairs 爬楼梯

发表于 2018-05-25 | 分类于 LeetCode
[LeetCode 70]Climbing Stairs 爬楼梯Problem description:You are climbing a stair case. It takes n steps to reach to the top. Each time you can either clim ...
阅读全文 »

【LeetCode 48】Rotate Image 旋转图像

发表于 2018-05-24 | 分类于 LeetCode
[LeetCode 48]Rotate Image 旋转图像Problem description:You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). ...
阅读全文 »

【LeetCode 78】Subsets 子集

发表于 2018-05-24 | 分类于 LeetCode
[LeetCode 78]Subsets 子集Problem description:Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set ...
阅读全文 »
1…678
Techone

Techone

73 日志
5 分类
14 标签
GitHub 微博 E-Mail Google
© 2019 Techone
由 Hexo 强力驱动
|
主题 — NexT.Gemini v5.1.4