字符串

来源:互联网 发布:泰鲁斯·托马斯数据 编辑:程序博客网 时间:2024/06/05 03:22

https://oj.leetcode.com/tag/string/ (TODO)

#1 字符串与数字相互转换

H1: https://oj.leetcode.com/problems/compare-version-numbers/

H2: https://oj.leetcode.com/problems/add-binary/

H3: https://oj.leetcode.com/problems/multiply-strings/

H4: https://oj.leetcode.com/problems/string-to-integer-atoi/  使用long处理int溢出问题

H5: https://oj.leetcode.com/problems/valid-number/

H6: https://oj.leetcode.com/problems/roman-to-integer/

       https://oj.leetcode.com/problems/integer-to-roman/

#2 字符串操作

https://oj.leetcode.com/problems/reverse-words-in-a-string/ (三步反转)
https://leetcode.com/problems/reverse-words-in-a-string-ii/ (三步反转)
http://lintcode.com/en/problem/rotate-string/ (三步反转)

H8: https://oj.leetcode.com/problems/implement-strstr/

H12:https://oj.leetcode.com/problems/longest-common-prefix/

H13:https://oj.leetcode.com/problems/text-justification/ 

双指针总结

H9: https://oj.leetcode.com/problems/longest-substring-without-repeating-characters/ (难)
H10:https://oj.leetcode.com/problems/minimum-window-substring/ (难)
H11:https://oj.leetcode.com/problems/substring-with-concatenation-of-all-words/  (难)
H18:https://oj.leetcode.com/problems/valid-palindrome/
H19:https://oj.leetcode.com/problems/longest-palindromic-substring/ (从中间扩到两边)

#3 Patterns

H14:https://oj.leetcode.com/problems/count-and-say/

Stack

H15:https://oj.leetcode.com/problems/valid-parentheses/

balance parentheses

H16:https://oj.leetcode.com/problems/simplify-path/


H17:https://oj.leetcode.com/problems/anagrams/  (hashtable)

https://leetcode.com/problems/palindrome-partitioning/ (DFS)

0 0
原创粉丝点击