摘要: Given the array restaurants where restaurants[i] = [idi, ratingi, veganFriendlyi, pricei, distancei]. You have to filter the restaurants using three f 阅读全文
posted @ 2020-01-29 14:28 Schwifty 阅读(190) 评论(0) 推荐(0)
摘要: Given a string s consisting only of letters 'a' and 'b'. In a single step you can remove one palindromic subsequence from s. Return the minimum number 阅读全文
posted @ 2020-01-29 11:01 Schwifty 阅读(360) 评论(0) 推荐(0)
摘要: Given an array of integers arr, replace each element with its rank. The rank represents how large the element is. The rank has the following rules: Ra 阅读全文
posted @ 2020-01-29 08:56 Schwifty 阅读(343) 评论(0) 推荐(0)
摘要: Given a m * n matrix mat of integers, sort it diagonally in ascending order from the top-left to the bottom-right then return the sorted array. Exampl 阅读全文
posted @ 2020-01-29 08:20 Schwifty 阅读(337) 评论(0) 推荐(0)
摘要: Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1. Example 1: Input: 123 Output: " 阅读全文
posted @ 2020-01-29 05:43 Schwifty 阅读(131) 评论(0) 推荐(0)