摘要: 题目如下: In an n*n grid, there is a snake that spans 2 cells and starts moving from the top left corner at (0, 0)and (0, 1). The grid has empty cells rep 阅读全文
posted @ 2019-10-02 06:45 seyjs 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given a string s, a k duplicate removal consists of choosing k adjacent and equal letters from s and removing them causing the left and the righ 阅读全文
posted @ 2019-10-02 06:42 seyjs 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 题目如下: You are given two strings s and t of the same length. You want to change s to t. Changing the i-th character of s to i-th character of t costs | 阅读全文
posted @ 2019-10-02 06:34 seyjs 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given an array of integers arr, write a function that returns true if and only if the number of occurrences of each value in the array is unique 阅读全文
posted @ 2019-10-02 06:25 seyjs 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 题目如下: In a given array nums of positive integers, find three non-overlapping subarrays with maximum sum. Each subarray will be of size k, and we want 阅读全文
posted @ 2019-10-02 06:23 seyjs 阅读(141) 评论(0) 推荐(0) 编辑