码迷,mamicode.com
首页 >  
搜索关键字:lintcode    ( 1584个结果
活跃事项传送门(2017年9月)
Projects Trello Class ☆☆☆ Robotics I: Robotic Manipunation Computational Intelligence Research ☆☆☆ Read Paper and Take notes - Google Drive Medium Moo ...
分类:其他好文   时间:2017-09-08 00:27:19    阅读次数:198
[LintCode] Binary Tree Flipping
Given a binary tree where all the right nodes are either leaf nodes with a sibling (a left node that shares the same parent node) or empty, flip it up ...
分类:其他好文   时间:2017-09-07 11:59:59    阅读次数:150
[LintCode] Binary Tree Leaves Order Traversal
Given a binary tree, collect a tree's nodes as if you were doing this: Collect and remove all leaves, repeat until the tree is empty. Have you met thi ...
分类:其他好文   时间:2017-09-07 10:11:27    阅读次数:219
[LintCode] Convert BST to Greater Tree
Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all ...
分类:其他好文   时间:2017-09-07 10:05:47    阅读次数:156
[LintCode] Binary Tree Vertical Order Traversal
Given a binary tree, return the vertical order traversal of its nodes' values. (ie, from top to bottom, column by column). If two nodes are in the sam ...
分类:其他好文   时间:2017-09-07 10:05:21    阅读次数:167
[LintCode] 427_Generate_Parentheses.cpp
题目:Generate Parentheses 描述:给定一个非负整数n,生成n对括号的所有合法排列。[转载] 解答: 该问题解的个数就是卡特兰数,但是现在不是求个数,而是要将所有合法的括号排列打印出来。 该问题和《编程之美》的买票找零问题一样,通过买票找零问题我们可以知道,针对一个长度为2n的合法 ...
分类:其他好文   时间:2017-09-07 00:04:33    阅读次数:138
lintcode.44 最小子数组
最小子数组 描述 笔记 数据 评测 给定一个整数数组,找到一个具有最小和的子数组。返回其最小和。 注意事项 子数组最少包含一个数字 您在真实的面试中是否遇到过这个题? Yes 哪家公司问你的这个题? Airbnb Amazon LinkedIn Cryptic Studios Dropbox App ...
分类:编程语言   时间:2017-09-05 23:03:18    阅读次数:205
lintcode.46 主元素
给定一个整型数组,找出主元素,它在数组中的出现次数严格大于数组元素个数的二分之一。 注意事项 You may assume that the array is non-empty and the majority number always exist in the array. You may a ...
分类:其他好文   时间:2017-09-05 20:52:02    阅读次数:183
[LintCode] Largest Rectangle in Histogram
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist ...
分类:其他好文   时间:2017-09-05 13:25:33    阅读次数:239
lintcode.245 子树
子树 描述 笔记 数据 评测 有两个不同大小的二进制树: T1 有上百万的节点; T2 有好几百的节点。请设计一种算法,判定 T2 是否为 T1的子树。 注意事项 若 T1 中存在从节点 n 开始的子树与 T2 相同,我们称 T2 是 T1 的子树。也就是说,如果在 T1 节点 n 处将树砍断,砍断 ...
分类:其他好文   时间:2017-09-02 12:54:46    阅读次数:122
1584条   上一页 1 ... 37 38 39 40 41 ... 159 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!