08 2019 档案

Leetcode 14. Longest Common Prefix(水)
摘要:14. Longest Common Prefix Easy Easy Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefi 阅读全文

posted @ 2019-08-31 11:04 若流芳千古 阅读(162) 评论(0) 推荐(0) 编辑

Leetcode 13. Roman to Integer(水)
摘要:13. Roman to Integer Easy Easy Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 阅读全文

posted @ 2019-08-31 09:38 若流芳千古 阅读(127) 评论(0) 推荐(0) 编辑

Leetcode 12. Integer to Roman(打表,水)
摘要:12. Integer to Roman Medium Medium Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 阅读全文

posted @ 2019-08-31 08:59 若流芳千古 阅读(227) 评论(0) 推荐(0) 编辑

Leetcode 11. Container With Most Water(逼近法)
摘要:11. Container With Most Water Medium Medium Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n ver 阅读全文

posted @ 2019-08-30 14:27 若流芳千古 阅读(138) 评论(0) 推荐(0) 编辑

Leetcode 10. Regular Expression Matching(递归,dp)
摘要:10. Regular Expression Matching Hard Hard Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and 阅读全文

posted @ 2019-08-29 17:42 若流芳千古 阅读(245) 评论(0) 推荐(0) 编辑

Linux 安装R包
摘要:https://www.cnblogs.com/jessepeng/p/10984983.html Linux 的R环境,可以通过anaconda jupyter notbook很容易的配置,见我之前的博客 https://www.cnblogs.com/shanyr/p/11276755.html 阅读全文

posted @ 2019-08-29 09:35 若流芳千古 阅读(2183) 评论(1) 推荐(0) 编辑

Leetcode 9. Palindrome Number(水)
摘要:9. Palindrome Number Easy Easy Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as forward. Ex 阅读全文

posted @ 2019-08-28 14:22 若流芳千古 阅读(120) 评论(0) 推荐(0) 编辑

Leetcode 8. String to Integer (atoi)(模拟题,水)
摘要:8. String to Integer (atoi) Medium Medium Implement atoi which converts a string to an integer. The function first discards as many whitespace charact 阅读全文

posted @ 2019-08-28 11:20 若流芳千古 阅读(168) 评论(0) 推荐(0) 编辑

Leetcode 7. Reverse Integer(水)
摘要:7. Reverse Integer Easy Easy Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Out 阅读全文

posted @ 2019-08-27 22:28 若流芳千古 阅读(135) 评论(0) 推荐(0) 编辑

Leetcode 6. ZigZag Conversion(找规律,水题)
摘要:6. ZigZag Conversion Medium Medium The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to di 阅读全文

posted @ 2019-08-27 17:00 若流芳千古 阅读(142) 评论(0) 推荐(0) 编辑

Leetcode 5. Longest Palindromic Substring(最长回文子串, Manacher算法)
摘要:Leetcode 5. Longest Palindromic Substring(最长回文子串, Manacher算法) Given a string s, find the longest palindromic substring in s. You may assume that the m 阅读全文

posted @ 2019-08-26 20:32 若流芳千古 阅读(238) 评论(0) 推荐(0) 编辑

Leetcode 4. Median of Two Sorted Arrays(中位数+二分答案+递归)
摘要:4. Median of Two Sorted Arrays Hard Hard There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted a 阅读全文

posted @ 2019-08-25 21:34 若流芳千古 阅读(212) 评论(0) 推荐(0) 编辑

Leetcode 3. Longest Substring Without Repeating Characters(string 用法 水题)
摘要:3. Longest Substring Without Repeating Characters Medium Medium Given a string, find the length of the longest substring without repeating characters. 阅读全文

posted @ 2019-08-24 19:24 若流芳千古 阅读(132) 评论(0) 推荐(0) 编辑

Leetcode 2. Add Two Numbers(指针和new的使用)结构体指针
摘要:恢复内容开始 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 阅读全文

posted @ 2019-08-23 14:40 若流芳千古 阅读(435) 评论(0) 推荐(0) 编辑

Leetcode 1. Two Sum(hash+stl)
摘要: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 ex 阅读全文

posted @ 2019-08-22 21:54 若流芳千古 阅读(126) 评论(0) 推荐(0) 编辑

hdu_1231(最大连续子序列)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1231 最长公共子序列: 方法1:暴力枚举所有区间的连续和,维护最大和 复杂度O(n^3)-->因为求区间和的时候重复了所以可以用S[i,j]=S[1,j]-S[1,i-1]来避免重复 复杂度可以降到O(n^2) 阅读全文

posted @ 2019-08-06 10:00 若流芳千古 阅读(158) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示