Given two binary trees original and cloned and given a reference to a node target in the original tree. The cloned tree is a copy of the original tree ...
分类:
其他好文 时间:
2020-04-15 09:14:36
阅读次数:
74
You are given a string s containing lowercase English letters, and a matrix shift, where shift[i] = [direction, amount]: direction can be 0 (for left ...
分类:
其他好文 时间:
2020-04-15 00:33:42
阅读次数:
52
Look-and-say sequence is a sequence of integers as the following: D, D1, D111, D113, D11231, D112213111, ... where D is in [0, 9] except 1. The (n+1)s ...
分类:
其他好文 时间:
2020-04-15 00:24:16
阅读次数:
63
题目描述 You are given a correct solution of the sudoku puzzle. If you don't know what is the sudoku, you can read about it here. The picture showing the ...
分类:
其他好文 时间:
2020-04-14 12:24:00
阅读次数:
126
Problem : The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Now your job is to find ...
分类:
其他好文 时间:
2020-04-13 12:22:42
阅读次数:
64
一、Boosting 1、Given the training data D = {$(x^{1},y^{1}),(x^{2},y^{2}),(x^{3},y^{3}),......(x^{m},y^{m})$} $x^{i}\in R^n$ $y\in (+1,-1)$ for each data ...
分类:
其他好文 时间:
2020-04-13 00:32:23
阅读次数:
75
LeetCode 1408. String Matching in an Array数组中的字符串匹配【Easy】【Python】【字符串】 Problem "LeetCode" Given an array of string . Return all strings in which is su ...
分类:
编程语言 时间:
2020-04-12 22:29:46
阅读次数:
94
1408. String Matching in an Array Given an array of string words. Return all strings in words which is substring of another word in any order. String ...
分类:
其他好文 时间:
2020-04-12 18:45:33
阅读次数:
75
成对交换节点。给一个linked list,请成对调换node。例子 Given 1->2->3->4, you should return the list as 2->1->4->3. 我的思路是迭代。依然是给一个dummy节点放在head节点之前,然后dummy.next是head节点,nex ...
分类:
其他好文 时间:
2020-04-12 14:57:23
阅读次数:
75
Problem : Given two non negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: 1. The length of both num1 and n ...
分类:
其他好文 时间:
2020-04-11 23:42:02
阅读次数:
75