modalsoul’s blog

これは“失敗”と呼べるかもしれないが、ぼくは“学習体験”と呼びたい

2020-01-01から1年間の記事一覧

LeetCode 12. Integer to Roman

LeetCode Problem No.12. No.11 is here. modalsoul.hatenablog.com 12. Integer to Roman Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Given an integer, convert it to a roman numeral. Input is guaranteed to…

LeetCode 11. Container With Most Water

LeetCode Problem No.11. No.10 is here. modalsoul.hatenablog.com 11. Container With Most Water https://leetcode.com/problems/container-with-most-water/ Given n non-negative integers a1, a2, ..., an , where each represents a point at coordin…

LeetCode 10. Regular Expression Matching

LeetCode Problem No.10. No.9 is here. modalsoul.hatenablog.com 10. Regular Expression Matching https://leetcode.com/problems/regular-expression-matching/ Given an input string (s) and a pattern (p), implement regular expression matching wi…

LeetCode 9. Palindrome Number

LeetCode problem No.9. No.8 is here. modalsoul.hatenablog.com 9. Palindrome Number https://leetcode.com/problems/palindrome-number/ Determine whether an integer is a palindrome. An integer is a palindrome when it reads the same backward as…

LeetCode 8. String to Integer (atoi)

LeetCode problem No.8. No.7 is here. modalsoul.hatenablog.com 8. String to Integer (atoi) https://leetcode.com/problems/string-to-integer-atoi/ Implement atoi which converts a string to an integer. The function first discards as many white…

LeetCode 7. Reverse Integer

LeetCode problem No.7. No.6 is here. modalsoul.hatenablog.com 7. Reverse Integer https://leetcode.com/problems/reverse-integer/ Given a 32-bit signed integer, reverse digits of an integer. Example 1 Input: 123 Output: 321 Example 2 Input: …

LeetCode 6. ZigZag Conversion

LeetCode problem No.6. No.5 is here. modalsoul.hatenablog.com 6. ZigZag Conversion https://leetcode.com/problems/zigzag-conversion/ The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may wa…

LeetCode 5. Longest Palindromic Substring

LeetCode problem No.5. No.4 is here. modalsoul.hatenablog.com 5. Longest Palindromic Substring https://leetcode.com/problems/longest-palindromic-substring/ Given a string s, find the longest palindromic substring in s. You may assume that …