![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
面试算法题
文章平均质量分 75
ncst
这个作者很懒,什么都没留下…
展开
-
经典二分法
Find any position of a target number in a sorted array. Return -1 if target does not exist.java实现public class Solution { /* * @param nums: An integer array sorted in ascending order * @p...原创 2018-02-14 17:04:40 · 326 阅读 · 0 评论 -
Binary Tree Preorder Traversal python
二叉树的前序遍历(非递归)(小米云计算一面)java/** * Definition of TreeNode: * public class TreeNode { * public int val; * public TreeNode left, right; * public TreeNode(int val) { * this.val = v...原创 2018-02-19 11:34:53 · 462 阅读 · 0 评论