Given a string s and a non-empty string p, find all the start indices of p’s anagrams in s.继续阅读
You are given a binary tree in which each node contains an integer value.
Find the number of paths that sum to a given value.继续阅读
Given a set of intervals, for each of the interval i, check if there exists an interval j whose start point is bigger than or equal to the end point of the interval i, which can be called that j is on the “right” of i.继续阅读
Given a collection of intervals, find the minimum number of intervals you need to remove to make the rest of the intervals non-overlapping.继续阅读
A gene string can be represented by an 8-character long string, with choices from “A”, “C”, “G”, “T”.
Suppose we need to investigate about a mutation (mutation from “start” to “end”), where ONE mutation is defined as ONE single character changed in the gene string.继续阅读
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 separate doubly linked list. These child lists may have one or more children of their own, and so on, to produce a multilevel data structure, as shown in the example below.继续阅读
Given an n-ary tree, return the level order traversal of its nodes’ values.继续阅读
We want to use quad trees to store an N x N boolean grid. Each cell in the grid can only be true or false. The root node represents the whole grid. For each node, it will be subdivided into four children nodes until the values in the region it represents are all the same.继续阅读
Given a string s that consists of only uppercase English letters, you can perform at most k operations on that string.
In one operation, you can choose any character of the string and change it to any other uppercase English character.
Find the length of the longest sub-string containing all repeating letters you can get after performing the above operations.继续阅读