摘要: 描述 You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, 阅读全文
posted @ 2022-07-22 16:44 IslandZzzz 阅读(29) 评论(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-07-22 15:31 IslandZzzz 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 描述 A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads t 阅读全文
posted @ 2022-07-22 15:23 IslandZzzz 阅读(15) 评论(0) 推荐(0) 编辑
摘要: ' 1-a, 2-c,. 3-v#$% '.replace(/[^A-Za-z0-9]/g,'') // '1a2c3v' 阅读全文
posted @ 2022-07-22 15:16 IslandZzzz 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 描述 Given an integer array nums and an integer k, return the kth largest element in the array. Note that it is the kth largest element in the sorted or 阅读全文
posted @ 2022-07-22 10:53 IslandZzzz 阅读(22) 评论(0) 推荐(0) 编辑