摘要: Reverse String II Given a string s and an integer k, reverse the first k characters for every 2k characters counting from the start of the string. If 阅读全文
posted @ 2022-10-24 17:53 iyiluo 阅读(25) 评论(0) 推荐(0)
摘要: Base 7 Given an integer num, return a string of its base 7 representation. Example 1: Input: num = 100 Output: "202" Example 2: Input: num = -7 Output 阅读全文
posted @ 2022-10-24 17:53 iyiluo 阅读(15) 评论(0) 推荐(0)
摘要: Fibonacci Number The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequence, such that each number is the sum of the 阅读全文
posted @ 2022-10-24 17:53 iyiluo 阅读(23) 评论(0) 推荐(0)
摘要: Ransom Note Given two strings ransomNote and magazine, return true if ransomNote can be constructed by using the letters from magazine and false other 阅读全文
posted @ 2022-10-24 17:52 iyiluo 阅读(26) 评论(0) 推荐(0)