上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 40 下一页
摘要: Reordered Power of 2 (M) 题目 Starting with a positive integer N, we reorder the digits in any order (including the original order) such that the leadin 阅读全文
posted @ 2021-03-21 16:22 墨云黑 阅读(46) 评论(0) 推荐(0) 编辑
摘要: Design Underground System (M) 题目 Implement the class UndergroundSystem that supports three methods: 1. checkIn(int id, string stationName, int t) A cu 阅读全文
posted @ 2021-03-20 16:20 墨云黑 阅读(47) 评论(0) 推荐(0) 编辑
摘要: Keys and Rooms (M) 题目 There are N rooms and you start in room 0. Each room has a distinct number in 0, 1, 2, ..., N-1, and each room may have some key 阅读全文
posted @ 2021-03-19 16:11 墨云黑 阅读(37) 评论(0) 推荐(0) 编辑
摘要: Generate Random Point in a Circle (M) 题目 Given the radius and x-y positions of the center of a circle, write a function randPoint which generates a un 阅读全文
posted @ 2021-03-17 16:46 墨云黑 阅读(49) 评论(0) 推荐(0) 编辑
摘要: Best Time to Buy and Sell Stock with Transaction Fee (M) 题目 You are given an array prices where prices[i] is the price of a given stock on the ith day 阅读全文
posted @ 2021-03-16 17:04 墨云黑 阅读(66) 评论(0) 推荐(0) 编辑
摘要: Encode and Decode TinyURL (M) 题目 Note: This is a companion problem to the System Design problem: Design TinyURL. TinyURL is a URL shortening service w 阅读全文
posted @ 2021-03-15 16:26 墨云黑 阅读(49) 评论(0) 推荐(0) 编辑
摘要: Swapping Nodes in a Linked List (M) 题目 You are given the head of a linked list, and an integer k. Return the head of the linked list after swapping th 阅读全文
posted @ 2021-03-14 16:48 墨云黑 阅读(72) 评论(0) 推荐(0) 编辑
摘要: Binary Trees With Factors (M) 题目 Given an array of unique integers, arr, where each integer arr[i] is strictly greater than 1. We make a binary tree u 阅读全文
posted @ 2021-03-13 19:53 墨云黑 阅读(51) 评论(0) 推荐(0) 编辑
摘要: Check If a String Contains All Binary Codes of Size K (M) 题目 Given a binary string s and an integer k. Return True if every binary code of length k is 阅读全文
posted @ 2021-03-12 19:14 墨云黑 阅读(51) 评论(0) 推荐(0) 编辑
摘要: Add One Row to Tree (M) 题目 Given the root of a binary tree, then value v and depth d, you need to add a row of nodes with value v at the given depth d 阅读全文
posted @ 2021-03-09 16:25 墨云黑 阅读(48) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 40 下一页