上一页 1 2 3 4 5 6 7 8 ··· 37 下一页
摘要: Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product. Example 1: I 阅读全文
posted @ 2020-09-13 18:38 fatttcat 阅读(134) 评论(0) 推荐(0) 编辑
摘要: You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time 阅读全文
posted @ 2020-09-13 18:33 fatttcat 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, each node has value 0 or 1. Each root-to-leaf path represents a binary number starting with the most significant bit. For example 阅读全文
posted @ 2020-09-10 14:30 fatttcat 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Compare two version numbers version1 and version2.If version1 > version2 return 1; if version1 < version2 return -1;otherwise return 0. You may assume 阅读全文
posted @ 2020-09-10 14:28 fatttcat 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Given a pattern and a string str, find if str follows the same pattern. Here follow means a full match, such that there is a bijection between a lette 阅读全文
posted @ 2020-09-10 14:18 fatttcat 阅读(116) 评论(0) 推荐(0) 编辑
摘要: A string S of lowercase English letters is given. We want to partition this string into as many parts as possible so that each letter appears in at mo 阅读全文
posted @ 2020-09-10 14:12 fatttcat 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Implement the StreamChecker class as follows: StreamChecker(words): Constructor, init the data structure with the given words. query(letter): returns 阅读全文
posted @ 2020-09-02 13:52 fatttcat 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Given an array of 4 digits, return the largest 24 hour time that can be made. The smallest 24 hour time is 00:00, and the largest is 23:59. Starting f 阅读全文
posted @ 2020-09-02 13:42 fatttcat 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node reference (possibly updated) of th 阅读全文
posted @ 2020-09-02 12:50 fatttcat 阅读(222) 评论(0) 推荐(0) 编辑
摘要: In a country popular for train travel, you have planned some train travelling one year in advance. The days of the year that you will travel is given 阅读全文
posted @ 2020-08-31 15:51 fatttcat 阅读(211) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 37 下一页