上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: 题目 Given a string s, find the length of the longest substring without repeating characters. Example 1: Input: s = "abcabcbb" Output: 3 Explanation: Th 阅读全文
posted @ 2022-02-26 22:08 frankming 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 题目 Given the head of a linked list, remove the nth node from the end of the list and return its head. Example 1: Input: head = [1,2,3,4,5], n = 2 Outp 阅读全文
posted @ 2022-02-26 00:01 frankming 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 题目 Given the head of a singly linked list, return the middle node of the linked list. If there are two middle nodes, return the second middle node. Ex 阅读全文
posted @ 2022-02-25 23:39 frankming 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 题目 Given a string s, reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. Example 阅读全文
posted @ 2022-02-25 22:16 frankming 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 题目 Write a function that reverses a string. The input string is given as an array of characters s. You must do this by modifying the input array in-pl 阅读全文
posted @ 2022-02-25 21:49 frankming 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 题目 Given a 1-indexed array of integers numbers that is already *sorted in non-decreasing order*, find two numbers such that they add up to a specific 阅读全文
posted @ 2022-02-25 00:31 frankming 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 题目 Given an integer array nums, move all 0's to the end of it while maintaining the relative order of the non-zero elements. Note that you must do thi 阅读全文
posted @ 2022-02-25 00:12 frankming 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 题目 Given an array, rotate the array to the right by k steps, where k is non-negative. Example 1: Input: nums = [1,2,3,4,5,6,7], k = 3 Output: [5,6,7,1 阅读全文
posted @ 2022-02-24 23:52 frankming 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 题目 Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order. Example 1 阅读全文
posted @ 2022-02-24 00:21 frankming 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 题目 Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be i 阅读全文
posted @ 2022-02-23 00:21 frankming 阅读(18) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页