摘要: Given two arrays of integers with equal lengths, return the maximum value of: |arr1[i] arr1[j]| + |arr2[i] arr2[j]| + |i j| where the maximum is taken 阅读全文
posted @ 2019-07-24 16:16 xuyy_isee 阅读(377) 评论(0) 推荐(0) 编辑
摘要: We distribute some number of candies, to a row of n = num_people people in the following way: We then give 1 candy to the first person, 2 candies to t 阅读全文
posted @ 2019-07-24 11:29 xuyy_isee 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a lette 阅读全文
posted @ 2019-07-24 10:29 xuyy_isee 阅读(179) 评论(0) 推荐(0) 编辑