摘要:
1.栈 2.递归 //0315看过 //0316复习整理 第一种栈:记得java中 Stack pop()返回栈顶元素并移除,push()压栈 第二种就写错了, 正确应为:每访问到一个结点的时候,先递归输出它后面的结点,再输出该结点自身【我好像做到最后忘了本题是干嘛的了,从后往前打印才对】 publ 阅读全文
posted @ 2017-03-15 14:51
Nicolellu
阅读(166)
评论(0)
推荐(0)
摘要:
定义: 结点的平衡因子:某结点右子树的高度与左子树的高度差为该结点的平衡因子 AVL树:AVL树或者空树 1)任一结点的平衡因子不超过一 |hr-hl|<=1,即:0、1、-1 2)任一节点的左子树和右子树都是平衡二叉树 AVL树基本操作:查找,插入,删除 阅读全文
posted @ 2017-03-15 14:47
Nicolellu
阅读(151)
评论(0)
推荐(0)
摘要:
第一反应感觉是排列组合及字符匹配问题 【既不是可重复排列,有可能不是全排列】 阅读全文
posted @ 2017-03-15 11:20
Nicolellu
阅读(359)
评论(0)
推荐(0)
摘要:
Given two non-negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: //0316复习 阅读全文
posted @ 2017-03-15 10:11
Nicolellu
阅读(380)
评论(0)
推荐(0)
摘要:
Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. 给一个字符串,返回第一个不重复的字符的index,要是没有的话就返回 阅读全文
posted @ 2017-03-15 08:51
Nicolellu
阅读(171)
评论(0)
推荐(0)

浙公网安备 33010602011771号