摘要: Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Note: 题目大意: 给定一个整数数组,计算下标i 到 j的元素和。 理 解 阅读全文
posted @ 2019-06-17 21:01 lpomeloz 阅读(139) 评论(0) 推荐(0) 编辑
摘要: You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 ston 阅读全文
posted @ 2019-06-17 13:16 lpomeloz 阅读(141) 评论(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-06-17 13:00 lpomeloz 阅读(145) 评论(0) 推荐(0) 编辑