摘要: 题目 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 阅读(25) 评论(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 阅读(17) 评论(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 阅读(18) 评论(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 阅读(22) 评论(0) 推荐(0) 编辑