码迷,mamicode.com
首页 > 2014年05月30日 > 全部分享
Word Break
Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or more dictionary words.For exampl...
分类:其他好文   时间:2014-05-30 16:09:32    阅读次数:213
Binary Tree Maximum Path Sum
Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1 ...
分类:其他好文   时间:2014-05-30 16:10:54    阅读次数:185
Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:其他好文   时间:2014-05-30 16:13:38    阅读次数:334
Construct Binary Tree from Inorder and Postorder Traversal
Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree./** * Definiti...
分类:其他好文   时间:2014-05-30 16:12:22    阅读次数:288
Flatten Binary Tree to Linked List
Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t...
分类:其他好文   时间:2014-05-30 16:15:02    阅读次数:224
Single Number
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:其他好文   时间:2014-05-30 16:16:29    阅读次数:190
Best Time to Buy and Sell Stock III
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:其他好文   时间:2014-05-30 16:19:05    阅读次数:320
Populating Next Right Pointers in Each Node II
Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution stil...
分类:其他好文   时间:2014-05-30 16:17:49    阅读次数:210
Longest Consecutive Sequence
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ...
分类:其他好文   时间:2014-05-30 16:20:32    阅读次数:229
我遇到的警告错误及解决方法
Warning: Latch audio_deal:audio_deal_inst|val_vrefl[2] has unsafe behavior Warning: Ports D and ENA on the latch are fed by the same signal audio_dea....
分类:其他好文   时间:2014-05-30 16:23:13    阅读次数:843
20140530-MySQL插入中文问题再做笔记
20140530-MySQL插入中文问题再做笔记 1、脚本语句 导入之前,先charset gbk。 修改表字段编码: 注意:这里用导入的方式插入的数据,控制台会报错。在我们的客户端工具中执行,就不会报错了。 2、MyBatis中,xml文件引入成为mapper的配置: 3、写junit测试类的时候...
分类:数据库   时间:2014-05-30 16:21:56    阅读次数:293
Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana...
分类:其他好文   时间:2014-05-30 16:24:31    阅读次数:222
Max Points on a Line
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line./** * Definition for a point. * struct Point { * ...
分类:其他好文   时间:2014-05-30 16:27:19    阅读次数:238
Reverse Words in a String
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".click to show clarification.Cl...
分类:其他好文   时间:2014-05-30 16:25:58    阅读次数:233
Word Break II
Given a stringsand a dictionary of wordsdict, add spaces insto construct a sentence where each word is a valid dictionary word.Return all such possibl...
分类:其他好文   时间:2014-05-30 16:28:34    阅读次数:199
Best Time to Buy and Sell Stock
Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie...
分类:其他好文   时间:2014-05-30 16:30:00    阅读次数:282
[软件测试]Linux环境中简单清爽的Google Test (GTest)测试环境搭建(初级使用)
本文将介绍单元测试工具google test(GTEST)在linux操作系统中测试环境的搭建方法。本文属于google test使用的基础教程。在linux中使用google test之前,需要对如下知识有一些了解:(1)C/C++编程方法(2)makefile的编写(3)linux命令行操作(4...
分类:系统相关   时间:2014-05-30 16:31:29    阅读次数:549
801条   上一页 1 ... 3 4 5 6 7 8 9 ... 48 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!