2020-01-01から1ヶ月間の記事一覧
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 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 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 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 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 …