
递归
超悦人生
公众号【超悦编程】,专注于校招、算法、数据结构和计算机基础知识。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode655.Print Binary Tree(java实现)
问题描述 Print a binary tree in an m*n 2D string array following these rules: The row number m should be equal to the height of the given binary tree. The column number n should always be an odd number....原创 2019-10-31 09:43:14 · 232 阅读 · 0 评论 -
LeetCode4. Median of Two Sorted Arrays(java实现)
问题描述 There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). You may assume nums1 ...原创 2019-10-25 23:56:20 · 139 阅读 · 0 评论 -
求二叉树两个节点的最近公共父节点的两种方法(java实现)
二叉树两个节点的最近公共父节点的两种方法(java实现)原创 2019-10-20 18:08:18 · 1516 阅读 · 0 评论 -
经典算法题 :整数中数字3(大众点评笔试题)
原题:0-999999之间的所有整数数字中,任何一位都不包括数字3的数字总数有多少个? 其实这道题目非常简单,就是9^6 = 531441个。因为每一位不能取3,就有9种可能,六位数就是 9^6。 不妨将题目一般化,及n取任意整数,0-n之间的所有整数数字中,任何一位都不包括数字3的数字总数有多少个?原创 2019-09-30 20:12:53 · 783 阅读 · 0 评论 -
字符数组的全排列
给定一个字符数组,打印该字符数组的全排列。原创 2019-10-07 15:15:34 · 331 阅读 · 0 评论