TK-Xiong`s Blog

TK-Xiong`s Blog

Code & Algorithm

Menu

  • My Life
    • Network
    • OS
    • SQL
    • TK-Xiong 邮箱
  • With
  • Code
    • Assembly
    • C++
    • Cocos
    • Go
    • MFC
    • Others
    • Qt
    • STL
  • And
  • Algorithm
    • LeetCode
    • Math
    • Search
    • Sort

Algorithm

LRU算法拓展 与 LFU算法思想

这里主要是针对LRU算法的几种拓展优化思路记录,学习。

[……]

tkxiong 2020-11-202020-11-20 Algorithm No Comments Read more

【LeetCode】28. Implement strStr()

Implement strStr().

Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.

题目大意:实现一个子串查找函数

[……]

tkxiong 2017-08-042017-08-04 LeetCode No Comments Read more

【LeetCode】15. 3Sum

Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0?

Find all unique triplets in the array which gives the sum of zero.

题目大意:找到三个数的和为0.

[……]

tkxiong 2017-08-022017-08-02 LeetCode No Comments Read more

【LeetCode】14. Longest Common Prefix

找所有字符串的最长前缀公共子串。

[……]

tkxiong 2017-01-25 LeetCode No Comments Read more

【LeetCode】12. Integer to Roman & 13. Roman to Integer

十进制整数转罗马数字 – 罗马数字转十进制整数

IntToRoman 和 RomanToInt 两个不错的题,搞成模板不错。

[……]

tkxiong 2017-01-242017-01-25 LeetCode No Comments Read more

【LeetCode】11. Container With Most Water

题目大意:选两个线加上x轴组成容器,装下更多的水。

[……]

tkxiong 2017-01-24 LeetCode No Comments Read more

【LeetCode】10. Regular Expression Matching

简易正则匹配…不坑,就是不太会(⊙﹏⊙)b[……]

tkxiong 2017-01-222017-01-22 LeetCode No Comments Read more

【LeetCode】9. Palindrome Number

Determine whether an integer is a palindrome. Do this without extra space.

[……]

tkxiong 2017-01-22 LeetCode No Comments Read more

【LeetCode】8. String to Integer (atoi)

atoi 函数…比较经典的面试坑题。

[……]

tkxiong 2017-01-21 LeetCode No Comments Read more

【LeetCode】7. Reverse Integer

翻转整数,注意几个坑点…

[……]

tkxiong 2017-01-21 LeetCode No Comments Read more

【LeetCode】6. ZigZag Conversion

波浪形的…额,转换? 简单题。

[……]

tkxiong 2017-01-212017-01-21 LeetCode No Comments Read more

【LeetCode】5. Longest Palindromic Substring

这题的期望最优解应该是manacher算法…又叫manacher最长回文子串。

这里给出Python解法 和 C++解法…

[……]

tkxiong 2017-01-192017-01-20 LeetCode No Comments Read more

【LeetCode】4. Median of Two Sorted Arrays

从两个已排序的数组中找到中位数,要求时间复杂度为log(m+n);

苦逼…各种被虐…C/C++、Python,三个版本。

[……]

tkxiong 2017-01-17 LeetCode No Comments Read more

【LeetCode】2. Add Two Numbers

写个算法还要各种查python语法…真可怜(⊙﹏⊙)b

[……]

tkxiong 2017-01-152020-06-01 LeetCode No Comments Read more
  • « Previous

分类

  • Algorithm (61)
    • LeetCode (52)
    • Math (2)
    • Search (4)
    • Sort (4)
  • Code (131)
    • Assembly (3)
    • C++ (33)
    • Cocos (6)
    • Go (33)
    • MFC (12)
    • Others (16)
    • Qt (8)
    • Rust (1)
    • STL (15)
  • MyLife (25)
  • Network (17)
  • OS (39)
    • Linux (13)
    • Windows (21)
  • SQL (11)
    • MySQL (5)
    • Redis (2)

最近更新

  • Welcome!
    更新时间: (2020-10-28)
  • 【Docker】安装最新版本、Pull 与 VPN
    更新时间: (2025-04-17)
  • 【MS】Microsoft 产品密钥 – 收集下载地址
    更新时间: (2025-04-17)
  • 【EditPlus】在线注册机
    更新时间: (2025-02-24)
  • 【Cursor】下载VSCode服务器失败问题
    更新时间: (2024-12-11)
  • 【Blog】博客迁移相关事项记录
    更新时间: (2024-11-29)
  • 【Go】Go调度器
    更新时间: (2024-11-25)

近期评论

  • 木点四 发表在《CentOS8 升级gcc版本》
  • tkxiong 发表在《【Go】gin Blog项目(八) GORM Callbacks 及拓展》
  • nnn 发表在《【Go】gin Blog项目(八) GORM Callbacks 及拓展》
  • tosslife 发表在《【Go】gin Blog项目(十二) 接入Redis缓存》
  • zouhao 发表在《【Go】基于gRPC框架的发布订阅模式》

归档

  • 2024 年 12 月 (1)
  • 2024 年 11 月 (2)
  • 2024 年 9 月 (3)
  • 2024 年 7 月 (1)
  • 2024 年 4 月 (1)
  • 2024 年 3 月 (2)
  • 2023 年 11 月 (1)
  • 2023 年 3 月 (1)
  • 2023 年 2 月 (2)
  • 2023 年 1 月 (1)
  • 2022 年 8 月 (1)
  • 2022 年 7 月 (1)
  • 2021 年 10 月 (1)
  • 2021 年 7 月 (1)
  • 2021 年 6 月 (1)
  • 2021 年 5 月 (2)
  • 2021 年 4 月 (4)
  • 2021 年 3 月 (1)
  • 2021 年 1 月 (1)
  • 2020 年 12 月 (1)
  • 2020 年 11 月 (6)
  • 2020 年 10 月 (2)
  • 2020 年 9 月 (12)
  • 2020 年 8 月 (5)
  • 2020 年 7 月 (13)
  • 2020 年 6 月 (6)
  • 2020 年 5 月 (2)
  • 2019 年 4 月 (1)
  • 2018 年 5 月 (1)
  • 2018 年 1 月 (2)
  • 2017 年 11 月 (1)
  • 2017 年 8 月 (3)
  • 2017 年 7 月 (2)
  • 2017 年 6 月 (1)
  • 2017 年 5 月 (7)
  • 2017 年 4 月 (6)
  • 2017 年 3 月 (4)
  • 2017 年 2 月 (3)
  • 2017 年 1 月 (13)
  • 2016 年 12 月 (1)
  • 2016 年 11 月 (3)
  • 2016 年 10 月 (3)
  • 2016 年 9 月 (16)
  • 2016 年 8 月 (14)
  • 2016 年 7 月 (12)
  • 2016 年 6 月 (5)
  • 2016 年 5 月 (12)
  • 2016 年 4 月 (6)
  • 2016 年 3 月 (18)
  • 2016 年 2 月 (39)
  • 2016 年 1 月 (14)
  • 2015 年 12 月 (14)
2025 年 5 月
日 一 二 三 四 五 六
 123
45678910
11121314151617
18192021222324
25262728293031
« 12 月    
Powered by WordPress. Theme: Spacious by ThemeGrill.
Copyright © 2015 - 2025. 鄂ICP备15023320号.