码迷,mamicode.com
首页 >  
搜索关键字:zigzag    ( 480个结果
[Topcoder]ZigZag(dp)
题目链接:https://community.topcoder.com/stat?c=problem_statement&pm=1259&rd=4493 题意:给一串数字,求出最长的波动序列。波动的定义是一个数相邻的两个数同时比他大或者同时比他小,形象的看成一个波动的三角函数吧。 定义dp(i)为到 ...
分类:其他好文   时间:2016-06-21 17:05:42    阅读次数:239
103. Binary Tree Zigzag Level Order Traversal
和102是一样的 用Collections.reverse(list)来翻转list ...
分类:其他好文   时间:2016-06-10 06:13:43    阅读次数:184
【Leetcode】6. ZigZag Conversion
题目描述: The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed ...
分类:其他好文   时间:2016-06-08 01:41:04    阅读次数:209
leetcode06- ZigZag Conversion之Java版本
我的leetcode之旅,该篇章主要完成使用Java实现算法。这是第6篇ZigZag Conversion...
分类:编程语言   时间:2016-06-02 22:06:17    阅读次数:205
6. ZigZag Conversion
题目: The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed f ...
分类:其他好文   时间:2016-05-31 06:30:08    阅读次数:319
【Leetcode】Binary Tree Zigzag Level Order Traversal
题目链接:https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/ 题目: Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then ...
分类:其他好文   时间:2016-05-30 15:14:26    阅读次数:110
【LeetCode】103. Binary Tree Zigzag Level Order Traversal 解题报告
转载请注明出处:http://blog.csdn.net/crazy1235/article/details/51471280Subject 出处:https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/ Given a binary tree, return the zigzag level ord...
分类:其他好文   时间:2016-05-28 13:05:27    阅读次数:220
【Leetcode】ZigZag Conversion
题目链接:https://leetcode.com/problems/zigzag-conversion/题目: The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fix...
分类:其他好文   时间:2016-05-27 12:50:47    阅读次数:129
Leetcode 103. Binary Tree Zigzag Level Order Traversal
1 /** 2 * Definition for a binary tree node. 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6 * TreeNode *right; 7 * TreeNode(int x) : val(x), ...
分类:其他好文   时间:2016-05-17 22:37:37    阅读次数:156
[LeetCode]题解(python):103 Binary Tree Zigzag Level Order Traversal
题目来源 https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/ Given a binary tree, return the zigzag level order traversal of its nodes ...
分类:编程语言   时间:2016-05-17 17:44:57    阅读次数:187
480条   上一页 1 ... 16 17 18 19 20 ... 48 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!