IncredibleThings

导航

2021年2月21日 #

LeetCode - Make The String Great

摘要: Given a string s of lower and upper case English letters. A good string is a string which doesn't have two adjacent characters s[i] and s[i + 1] where 阅读全文

posted @ 2021-02-21 14:45 IncredibleThings 阅读(28) 评论(0) 推荐(0) 编辑

LeetCode - Random Pick with Weight

摘要: You are given an array of positive integers w where w[i] describes the weight of ith index (0-indexed). We need to call the function pickIndex() which 阅读全文

posted @ 2021-02-21 13:30 IncredibleThings 阅读(51) 评论(0) 推荐(0) 编辑