上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: Given the head of a linked list, remove the nth node from the end of the list and return its head. Follow up: Could you do this in one pass? Example 1 阅读全文
posted @ 2021-03-08 20:36 coderJ_ONE 阅读(35) 评论(0) 推荐(0) 编辑
摘要: Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the thr 阅读全文
posted @ 2021-03-08 20:31 coderJ_ONE 阅读(28) 评论(0) 推荐(0) 编辑
摘要: Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the s 阅读全文
posted @ 2021-03-08 20:26 coderJ_ONE 阅读(30) 评论(0) 推荐(0) 编辑
摘要: Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "". Exampl 阅读全文
posted @ 2021-03-08 19:42 coderJ_ONE 阅读(33) 评论(0) 推荐(0) 编辑
摘要: Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, 2 is 阅读全文
posted @ 2021-03-08 19:36 coderJ_ONE 阅读(39) 评论(0) 推荐(0) 编辑
摘要: Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 For example, 2 is 阅读全文
posted @ 2021-03-08 19:25 coderJ_ONE 阅读(34) 评论(0) 推荐(0) 编辑
摘要: Implement the myAtoi(string s) function, which converts a string to a 32-bit signed integer (similar to C/C++'s atoi function). The algorithm for myAt 阅读全文
posted @ 2021-03-08 19:20 coderJ_ONE 阅读(36) 评论(0) 推荐(0) 编辑
摘要: Given a signed 32-bit integer x, return x with its digits reversed. If reversing x causes the value to go outside the signed 32-bit integer range [-23 阅读全文
posted @ 2021-03-08 19:02 coderJ_ONE 阅读(30) 评论(0) 推荐(0) 编辑
摘要: The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font 阅读全文
posted @ 2021-03-08 18:28 coderJ_ONE 阅读(36) 评论(0) 推荐(0) 编辑
摘要: Given a string s, return the longest palindromic substring in s. Example 1: Input: s = "babad" Output: "bab" Note: "aba" is also a valid answer. Examp 阅读全文
posted @ 2021-03-08 17:57 coderJ_ONE 阅读(36) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页