摘要: 原题链接在这里:https://leetcode.com/problems/rotate-string/ 题目: We are given two strings, A and B. A shift on A consists of taking string A and moving the le 阅读全文
posted @ 2020-03-21 14:10 Dylan_Java_NYC 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/flower-planting-with-no-adjacent/ 题目: You have N gardens, labelled 1 to N. In each garden, you want to plant one 阅读全文
posted @ 2020-03-21 13:49 Dylan_Java_NYC 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/implement-rand10-using-rand7/ 题目: Given a function rand7 which generates a uniform random integer in the range 1 阅读全文
posted @ 2020-03-21 07:24 Dylan_Java_NYC 阅读(223) 评论(0) 推荐(0) 编辑