摘要:
描述 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, 阅读全文
摘要:
描述 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 阅读全文
摘要:
描述 A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads t 阅读全文
摘要:
' 1-a, 2-c,. 3-v#$% '.replace(/[^A-Za-z0-9]/g,'') // '1a2c3v' 阅读全文
摘要:
描述 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 阅读全文