Algorithms playground for common questions solved in Python.
This repository contains my solution for some common algorithms. I've created this repository to learn about algorithms and improve solving different common computer science problems. I'll try to add more solutions if I have time :)
Each solved problem has a program written in Python. Every solution is tested and some problems contains more than one solution with different implementations.
- Longest Substring Without Repeating Characters---最长不重复子串长度
- Median of Two Sorted Arrays---两有序数组求中位数O(log(m+n))
- Longest Palindromic Substring---字符串最长回文子串
- ZigZag Conversion---Z模式字符串变换
- String to Integer (atoi)---字符串转成整数
- Palindrome Number---判断回文数(不使用额外空间)
- Valid Number---合法数字验证
- Word Ladder II---单词梯
- Max Points on a Line---平面上在同一直线上最大点数
- LRU Cache---LRU缓存
- Count of Smaller Numbers After Self---自身后面的逆序数
- Reverse Pairs---逆序对数
- Text Justification---格式化输出文本