标签归档:leetcode

RSS feed of leetcode

[LeetCode]Binary Trees With Factors

题目描述:

LeetCode 823. Binary Trees With Factors

Given an array of unique integers, each integer is strictly greater than 1.

We make a binary tree using these integers and each number may be used for any number of times.

Each non-leaf ...

继续阅读

[LeetCode]Shortest Distance to a Character

题目描述:

LeetCode 821. Shortest Distance to a Character

Given a string S and a character C, return an array of integers representing the shortest distance from the character C in the string.

Example 1:

Input: S = "loveleetcode", C = 'e'
Output ...

继续阅读