anyien
码龄14年
求更新 关注
提问 私信
  • 博客:3,187
    3,187
    总访问量
  • 6
    原创
  • 0
    粉丝
  • 12
    关注
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:上海市
加入CSDN时间: 2011-11-13
博客简介:

anyien的博客

查看详细资料
个人成就
  • 获得0次点赞
  • 内容获得0次评论
  • 获得0次收藏
  • 博客总排名1,380,579名
  • 原力等级
    原力等级
    0
    原力分
    0
    本月获得
    0
创作历程
  • 7篇
    2015年
成就勋章
TA的专栏
  • Leetcode
    6篇
  • 算法
    1篇

TA关注的专栏 0

TA关注的收藏夹 0

TA关注的社区 0

TA参与的活动 0

创作活动更多

新星杯·14天创作挑战营·第13期

这是一个以写作博客为目的的创作活动,旨在鼓励大学生博主们挖掘自己的创作潜能,展现自己的写作才华。如果你是一位热爱写作的、想要展现自己创作才华的小伙伴,那么,快来参加吧!我们一起发掘写作的魅力,书写出属于我们的故事。我们诚挚邀请你们参加为期14天的创作挑战赛!注: 1、参赛者可以进入活动群进行交流、互相鼓励与支持(开卷),虚竹哥会分享创作心得和涨粉心得,答疑及活动群请见:https://bbs.csdn.net/topics/619781944 【进活动群,得奖概率会更大,因为有辅导】 2、文章质量分查询:https://www.csdn.net/qc

90人参与 去参加
  • 最近
  • 文章
  • 专栏
  • 代码仓
  • 资源
  • 收藏
  • 关注/订阅/互动
更多
  • 最近

  • 文章

  • 专栏

  • 代码仓

  • 资源

  • 收藏

  • 关注/订阅/互动

  • 社区

  • 帖子

  • 问答

  • 课程

  • 视频

搜索 取消

DFS(深度优先搜索)解析

1.1 Balanced Binary Tree(平衡二叉树)     平衡二叉树又被称为AVL树(有别于AVL算法),且具有以下性质:它是一 棵空树或它的左右两个子树的高度差的绝对值不超过1,并且左右两个子树都是一棵平衡二叉树。常用算法有红黑树、AVL、Treap、伸展树等。在平衡二叉搜索树中,我们可以看到,其高度一般都良好地维持在O(log2n),大大降低了操作的时间复杂度。
原创
博文更新于 2015.06.25 ·
592 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

leetcode由易入难——【6】Count and Say

 The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, ... 1 is read off as "one 1" or 11. 11 is read off as "two 1s" or 21. 21 is read off as "
原创
博文更新于 2015.06.29 ·
493 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

leetcode由易入难——【5】Compare Version Numbers

Compare two version numbers version1 and version2. If version1 > version2 return 1, if version1 version2 return -1, otherwise return 0. You may assume that the version strings are non-empty and
转载
博文更新于 2015.06.29 ·
270 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

leetcode由易入难——【3】Climbing Stairs

You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? 分析 设f(n)表示爬n阶楼梯的不同方法数
原创
博文更新于 2015.06.26 ·
345 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

leetcode由易入难——【4】Decode Ways

 A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26Given an encoded message containing digits, determine the total num
原创
博文更新于 2015.06.26 ·
715 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

leetcode由易入难——【2】Balanced Binary Tree

Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never d
原创
博文更新于 2015.06.25 ·
402 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

leetcode由易入难——【1】Add Binary

Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100".
原创
博文更新于 2015.06.25 ·
370 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏