摘要: 经典题目:给定一个二叉搜索树,插入一个值为val的新节点 阅读全文
posted @ 2018-10-04 16:52 hopskin1 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 列出所有可能的完全二叉树 阅读全文
posted @ 2018-10-04 16:29 hopskin1 阅读(272) 评论(0) 推荐(0) 编辑
摘要: python解法 阅读全文
posted @ 2018-10-04 11:42 hopskin1 阅读(99) 评论(0) 推荐(0) 编辑
摘要: A zero-indexed array A of length N contains all integers from 0 to N-1. Find and return the longest length of set S, where S[i] = {A[i], A[A[i]], A[A[ 阅读全文
posted @ 2018-10-04 11:24 hopskin1 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 对于矩阵A(M*N) 行是否翻转。每一行的第一个数必须为1,因为它的相当于2^(N-1) 列是否翻转。 参考 https://leetcode.com/problems/score-after-flipping-matrix/discuss/143722/C++JavaPython-Easy-and 阅读全文
posted @ 2018-10-04 10:56 hopskin1 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 等比数列求和公式 阅读全文
posted @ 2018-10-04 10:52 hopskin1 阅读(6874) 评论(0) 推荐(0) 编辑