![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
文章平均质量分 54
betty1121
这个作者很懒,什么都没留下…
展开
-
29. Merge Sort Linked List
Given a singly-linked list, where each node contains an integer value, sort it in ascending order. The merge sort algorithm should be used to solve this problem. Examples null, is sorted to null 1 -> null, is sorted to 1 -> null 1 -> 2 -> 3原创 2021-09-18 16:16:40 · 255 阅读 · 0 评论 -
9. Palindrome Number
Given an integerx, returntrueifxis palindrome integer. An integer is apalindromewhen it reads the same backward as forward. For example,121is palindrome while123is not. Example 1: Input: x = 121 Output: true Example 2: Input: x = -121...原创 2021-03-12 19:39:15 · 75 阅读 · 0 评论 -
13. Roman to Integer
Roman numerals are represented by seven different symbols:I,V,X,L,C,DandM. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example,2is written asI...原创 2021-03-12 19:34:13 · 78 阅读 · 0 评论