摘要: Given an array arr of positive integers sorted in a strictly increasing order, and an integer k. Find the kth positive integer that is missing from th 阅读全文
posted @ 2020-09-08 15:30 CNoodle 阅读(1595) 评论(0) 推荐(0)
摘要: On a campus represented as a 2D grid, there are N workers and M bikes, with N <= M. Each worker and bike is a 2D coordinate on this grid. Our goal is 阅读全文
posted @ 2020-09-08 11:58 CNoodle 阅读(236) 评论(0) 推荐(0)
摘要: Given a pattern and a string s, find if s follows the same pattern. Here follow means a full match, such that there is a bijection between a letter in 阅读全文
posted @ 2020-09-08 00:53 CNoodle 阅读(202) 评论(0) 推荐(0)
摘要: There is a car with capacity empty seats. The vehicle only drives east (i.e., it cannot turn around and drive west). You are given the integer capacit 阅读全文
posted @ 2020-09-08 00:10 CNoodle 阅读(577) 评论(0) 推荐(0)