Danny, the local Math Maniac, is fascinated by circles, Omkar's most recent creation. Help him solve this circle problem! You are given \(n\) nonnegat ...
分类:
其他好文 时间:
2020-07-12 10:23:13
阅读次数:
122
A substring of a string T is defined as: T(i, k)=TiTi+1...Ti+k-1, 1≤i≤i+k-1≤|T|. Given two strings A, B and one integer K, we define S, a set of tripl ...
分类:
编程语言 时间:
2020-07-11 13:09:02
阅读次数:
71
Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbers and operators. Th ...
分类:
其他好文 时间:
2020-07-11 12:41:31
阅读次数:
54
You are given a doubly linked list which in addition to the next and previous pointers, it could have a child pointer, which may or may not point to a ...
分类:
其他好文 时间:
2020-07-11 10:04:24
阅读次数:
84
Rotate List (M) 题目 Given a linked list, rotate the list to the right by k places, where k is non-negative. Example 1: Input: 1->2->3->4->5->NULL, k = ...
分类:
其他好文 时间:
2020-07-11 09:40:09
阅读次数:
39
Flatten a Multilevel Doubly Linked List (M) 题目 You are given a doubly linked list which in addition to the next and previous pointers, it could have a ...
分类:
其他好文 时间:
2020-07-11 09:25:02
阅读次数:
50
You are given a doubly linked list which in addition to the next and previous pointers, it could have a child pointer, which may or may not point to a ...
分类:
其他好文 时间:
2020-07-11 09:24:32
阅读次数:
64
Given the array nums, for each nums[i] find out how many numbers in the array are smaller than it. That is, for each nums[i] you have to count the num ...
分类:
其他好文 时间:
2020-07-11 09:17:31
阅读次数:
48
题目 Given two binary strings, return their sum (also a binary string). The input strings are both non-empty and contains only characters 1 or 0. Exampl ...
分类:
其他好文 时间:
2020-07-10 20:58:33
阅读次数:
56
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 ...
分类:
其他好文 时间:
2020-07-10 13:24:07
阅读次数:
65