码迷,mamicode.com
首页 >  
搜索关键字:example    ( 17798个结果)
[LeetCode] 5. Longest Palindromic Substring
最长的回文子串。题意是给一个字符串,请输出其中最长的回文子串。例子 Example 1: Input: "babad" Output: "bab" Note: "aba" is also a valid answer. Example 2: Input: "cbbd" Output: "bb" 这个 ...
分类:其他好文   时间:2020-01-15 09:23:40    阅读次数:66
[LC] 250. Count Univalue Subtrees
Given a binary tree, count the number of uni-value subtrees. A Uni-value subtree means all nodes of the subtree have the same value. Example : Input: ...
分类:其他好文   时间:2020-01-14 12:56:57    阅读次数:59
[LeetCode] 513. Find Bottom Left Tree Value
寻找最小最左叶子节点的值。题意是给一个二叉树,请return最底层,最靠左边节点的值。例子 Example 1: Input: 2 / \ 1 3 Output: 1 Example 2: Input: 1 / \ 2 3 / / \ 4 5 6 / 7 Output: 7 Note: You ma ...
分类:其他好文   时间:2020-01-14 09:45:41    阅读次数:51
[LeetCode] 3. Longest Substring Without Repeating Characters
最长无重复字符的子串。 题意是给一个input字符串,请输出其最长的,没有重复字符的substring。这是two pointer/sliding window的基础题。例子 Example 1: Input: "abcabcbb" Output: 3 Explanation: The answer ...
分类:其他好文   时间:2020-01-14 09:18:01    阅读次数:72
ARM processors DMIPS/MHz comparison
CoreArchitecturebitsDMIPS/MHzDMIPS/MHz* ARM11 v7-A 32 1.25 Cortex-A7 v7-A 32 1.9 1.9 Cortex-A8 v7-A 32 2.0 2.0 Cortex-A9 v7-A 32 2.0 2.5 Cortex-A15 v7 ...
分类:其他好文   时间:2020-01-13 16:20:58    阅读次数:420
攻防世界 reverse Guess-the-Number
Guess-the-Number su-ctf-quals-2014 使用jd-gui 反编译jar import java.math.BigInteger; public class guess { static String XOR(String _str_one, String _str_tw ...
分类:其他好文   时间:2020-01-13 12:44:50    阅读次数:341
[LeetCode] 112. Path Sum
二叉树的路径和。题意是给一个二叉树和一个数字sum。求是否有这样一条路径可以使得二叉树从根节点到叶子节点经过的所有的节点值之和等于sum。此题可以用BFS和DFS两种做法解决,时间和空间复杂度都是O(n)。例子如下, Example: Given the below binary tree and  ...
分类:其他好文   时间:2020-01-12 15:04:09    阅读次数:65
常用排序算法总结(基于算法 第四版)
1.初级排序算法 1.1我们关注的主要对象为重拍数组元素的算法。,其中每个元素有个主键,将主键按照某种方式排列。在java中元素通常都是对象,对主键描述往往通过comparable接口。 一般排序模板 public class Example{ public static void sort(Com ...
分类:编程语言   时间:2020-01-12 14:59:26    阅读次数:92
[LeetCode] 113. Path Sum II
二叉树的路径和二。题意跟版本一很接近,唯一的不同是版本一只是问是否有满足条件的路径;版本二是输出所有满足条件的路径和。例子, Example: Given the below binary tree and sum = 22, 5 / \ 4 8 / / \ 11 13 4 / \ / \ 7 2 ...
分类:其他好文   时间:2020-01-12 14:56:50    阅读次数:47
[LC] 443. String Compression
Given an array of characters, compress it in-place. The length after compression must always be smaller than or equal to the original array. Every ele ...
分类:其他好文   时间:2020-01-12 13:42:25    阅读次数:92
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!