码迷,mamicode.com
首页 > 其他好文
统计单词个数
题目描述 Description 给出一个长度不超过200的由小写英文字母组成的字母串(约定;该字串以每行20个字母的方式输入,且保证每行一定为20个)。要求将此字母串分成k份(1<k<=40),且每份中包含的单词个数加起来总数最大(每份中包含的单词可以部分重叠。当选用一个单词之后,其第一个字母不能 ...
分类:其他好文   时间:2016-07-03 06:58:24    阅读次数:224
16.7
1 import java.awt.*; 2 import java.awt.event.MouseAdapter; 3 import java.awt.event.MouseEvent; 4 5 import javax.swing.*; 6 7 public class Test_16_7 ex ...
分类:其他好文   时间:2016-07-03 06:57:13    阅读次数:196
redis的文件事件处理器
前言 C10K problem提出了一个问题,如果1w个客户端连接到server上,间歇性的发送消息,有哪些好的方案? 其中的一种方案是,每个线程处理多个客户端,使用异步I/O和就绪通知机制,redis无疑是一个很好的榜样 redis的特点和C10K proble的契合点 内存数据库; 单线程支持上 ...
分类:其他好文   时间:2016-07-03 06:56:00    阅读次数:1336
【leetcode】15. 3Sum
题目描述: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the s ...
分类:其他好文   时间:2016-07-03 06:55:35    阅读次数:171
【leetcode】13. Roman to Integer
题目描述: Given a roman numeral, convert it to an integer. 解题分析: 这道题只要百度一下转换的规则,然后着这解释写代码即可。实现上并没有什么难度,直接看代码即可 具体代码: ...
分类:其他好文   时间:2016-07-03 06:58:23    阅读次数:143
川师2016上半年软件工程助教总结
坦白来说,这周一直在思考这篇总结该怎样写才能值得总结二字,毕竟这第一份的助教工作我并没有参与太多。 这篇总结分为川师大研究生和本科生两部分。 1. 研究生 - 廖老师 a. 学生规模:11人 b. 批改作业次数:3次 和廖老师沟通后,得知其项目大多会涉及到学院的实际项目,不适合公开,那么点评的工作就 ...
分类:其他好文   时间:2016-07-03 06:55:55    阅读次数:133
[转]设计模式中类的关系
转自 http://blog.csdn.net/zhengzhb/article/details/7187278 在java以及其他的面向对象设计模式中,类与类之间主要有6种关系,他们分别是:依赖、关联、聚合、组合、继承、实现。他们的耦合度依次增强。 1. 依赖(Dependence) 依赖关系的定 ...
分类:其他好文   时间:2016-07-03 06:58:02    阅读次数:102
Intersection of Two Linked Lists
Write a program to find the node at which the intersection of two singly linked lists begins. Notice If the two linked lists have no intersection at a ...
分类:其他好文   时间:2016-07-03 06:57:31    阅读次数:116
rosrun rviz rviz 详解
内置的显示类型 ...
分类:其他好文   时间:2016-07-03 06:54:23    阅读次数:2038
Remove Nth Node From End of List
Given a linked list, remove the nth node from the end of list and return its head. Notice The minimum number of nodes in list is n. Have you met this ...
分类:其他好文   时间:2016-07-03 06:56:13    阅读次数:121
见猎心喜 浅尝辄止 偶有所得 不足为法
见猎心喜 浅尝辄止 偶有所得 不足为法 ...
分类:其他好文   时间:2016-07-03 06:54:41    阅读次数:651
【leetcode】14. Longest Common Prefix
题目描述: Write a function to find the longest common prefix string amongst an array of strings. 解题思路: 这道题很简单,分两步: 1. 找出所有字符串中长度最小的那个字符串的值(可能的结果的最大值,保证查找时 ...
分类:其他好文   时间:2016-07-03 06:56:52    阅读次数:150
1~100的奇数和
public class Test04 { public static void main(String[] args) { int t=0; //执行for循环,使循环间隔为2,从而之进行奇数操作 for(int i=1;i<=100;i+=2){ t+=i; //每次循环时,为表示总和的变量加上 ...
分类:其他好文   时间:2016-07-03 06:54:48    阅读次数:132
用循环打印26个字母。
public class Test03 { public static void main(String[] args) { //定义了一个char型的数组a char[] a; //实例对象数组,长度为25 a = new char[26]; for (int i = 0; i < 26; i++ ...
分类:其他好文   时间:2016-07-03 06:54:30    阅读次数:204
A005-软件结构-前后台结构
前后台结构 ------------------------------------------------------------------------------------------------------------------------------------- 开发环境:AVR Studio 4.19 + avr-toolchain-installer-3.4.1.1...
分类:其他好文   时间:2016-07-03 01:52:34    阅读次数:242
Coursera公开课笔记: 斯坦福大学机器学习第七课“正则化”
Coursera公开课笔记: 斯坦福大学机器学习第七课“正则化” NLPJob 斯坦福大学机器学习第七课”正则化“学习笔记,本次课程主要包括4部分: 1) The Problem of Overfitting(过拟合问题) 2) Cost Function(成本函数) 3) Regularized Linear Regression(线性回归的正则化...
分类:其他好文   时间:2016-07-03 01:50:44    阅读次数:202
[转] 关于maven tomcat plugin 调试源码的解决方案
一、 解决关联第三方jar源码 在pom文件中加入: Xml代码 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-eclipse-plugin</artifactId> ...
分类:其他好文   时间:2016-07-03 01:51:24    阅读次数:195
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!