摘要:
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
阅读(124)
评论(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
阅读(167)
评论(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
阅读(134)
评论(0)
推荐(0)