ARTS
一条咸鱼1222
这个作者很懒,什么都没留下…
展开
-
ARTS总结-第7周
开始容易,坚持不易,愿你我都能坚持下去。 Algorithm Reverse Vowels of a String Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Input: “hello” Output: “holle” Example 2: Input: “leetcode” Output: “leotcede” 思路:set存储所有元音字母,头尾双指原创 2020-10-27 17:57:12 · 89 阅读 · 0 评论 -
ARTS总结-第6周
开始容易,坚持不易,愿你我都能坚持下去。 Algorithm Reverse Vowels of a String Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Input: “hello” Output: “holle” Example 2: Input: “leetcode” Output: “leotcede” 思路:set存储所有元音字母,头尾双指原创 2020-10-09 16:15:34 · 100 阅读 · 0 评论 -
ARTS总结-第5周
开始容易,坚持不易,愿你我都能坚持下去。 Algorithm String Compression Given an array of characters, compress it in-place. The length after compression must always be smaller than or equal to the original array. Every element of the array should be a character (not int) of le原创 2020-09-09 14:21:00 · 146 阅读 · 0 评论 -
ARTS总结-第4周
开始容易,坚持不易,愿你我都能坚持下去。 Algorithm Thousand Separator Given an integer n, add a dot (".") as the thousands separator and return it in string format. Example 1: Input: n = 987 Output: “987” Example 2: Input: n = 1234 Output: “1.234” Example 3: Input: n = 12345原创 2020-08-28 18:06:15 · 155 阅读 · 1 评论 -
ARTS总结-第3周
Algorithm Unique Morse Code Words 唯一摩尔斯密码词,给定一组词,判断该组词翻译成摩尔斯密码之后有几个不同的词 International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: “a” maps to “.-”, “b” maps to “-…”, “c” maps to “-.-.”, an原创 2020-08-24 10:58:29 · 150 阅读 · 0 评论 -
ARTS总结-第2周
title: ARTS-第2周 Algorithm 680. Valid Palindrome II Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Input: “aba” Output: True Example 2: Input: “abca” Output: True Explanation: You c.原创 2020-08-03 13:49:13 · 255 阅读 · 0 评论 -
ARTS总结-第1周
Algorithm 20. Valid Parentheses Given a string containing just the characters ‘(’, ‘)’, ‘{’, ‘}’, ‘[’ and ‘]’, determine if the input string is valid. An input string is valid if: Open brackets must be closed by the same type of brackets. Open brackets原创 2020-07-27 11:00:38 · 133 阅读 · 0 评论