码迷,mamicode.com
首页 > 其他好文
集合类(四)
Collection 1、常用方法 Collection 接口用于表示任何对象或元素组。想要尽可能以常规方式处理一组元素时,就使用这一接口。Collection 在前面的大图也可以看出,它是List和Set 的父类。并且它本身也是一个接口。它定义了作为集合所应该拥有的一些方法。如下: 注意: 集合必须只有对象,集合中的元素不能是基本数据类型。 Collection接口支持如添加和除去等基...
分类:其他好文   时间:2016-05-27 13:01:03    阅读次数:222
HDU 2571 命运(简单DP)
传送门命运Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 15547 Accepted Submission(s): 5442Problem Description 穿过幽谷意味着离大魔王lemon已经无限接近了! 可谁能想到,...
分类:其他好文   时间:2016-05-27 13:00:24    阅读次数:195
[从头学数学] 第218节 带着计算机去高考(十)
剧情提要: [机器小伟]在[工程师阿伟]的陪同下进入了[九转金丹]之第八转的修炼。设想一个场景: 如果允许你带一台不连网的计算机去参加高考,你会放弃选择一个手拿计算器和草稿本吗 ?阿伟决定和小伟来尝试一下用计算机算高考题会是怎样的感觉。 正剧开始: 星历2016年05月23日 17:06:45, 银河系厄尔斯星球中华帝国江南行省。 [工程师阿伟]正在和[机器小伟]一起做着20...
分类:其他好文   时间:2016-05-27 13:00:07    阅读次数:175
Gazebo与ros_control(4):举一反三,实战youBot
在前面的三篇中,对ros_control也有个大致了解了。这篇就是将之前学到的用于我们实验室的平台KUKA youBot上。在此之前,其实网上已经有关于youBot在Gazebo下的仿真视频了。 另外说个题外话,用Gazebo和Riz都可以做仿真,Gazebo最强大的是拥有物理引擎,有物理渲染,有碰撞效果、重力等等。 这里参考的package主要是: h...
分类:其他好文   时间:2016-05-27 12:56:55    阅读次数:337
图片加载库Glide——解决图片错乱+无法设置tag
今天在写一个图片加载类ImageLoader,在使用的时候想用Glide替代我写的ImageLoader,然后问题就出来了!!!第一个问题:在使用自己写的ImageLoader的时候,为了防止item复用导致的图片错乱,设置了Tag 如下代码 @Override public View getView(int position, View convertView, Vi...
分类:其他好文   时间:2016-05-27 12:58:38    阅读次数:301
【Socket编程】篇三
下面我们实现下回声客户端。 所谓“回声”,是指客户端向服务器发送一条数据,服务器再将数据原样返回给客户端。 代码相对于 篇一 与 篇二 并没有太多变化。如下所示: 服务器端: #include #include #include #include #include #include #include #include #include const int BUFFE...
分类:其他好文   时间:2016-05-27 12:56:41    阅读次数:182
Guided Policy Search
引导策略搜索算法, 由Levine 在13年提出, 使用DDP产生处于高回报区域的引导样本, 辅助策略搜索. 类似然比率评估器的重要采样技术用于合并这些引导样本到策略搜索中. GPS算法使用model-free的一些方法, 并结合model-based的DDP生成引导样本对学习过程进行引导. 可以将其视为将引导轨迹集合转换为一个控制器的过程....
分类:其他好文   时间:2016-05-27 12:56:06    阅读次数:407
【Leetcode】Basic Calculator II
题目链接:https://leetcode.com/problems/basic-calculator-ii/题目: Implement a basic calculator to evaluate a simple expression string.The expression string contains only non-negative integers, +, -, *, / op...
分类:其他好文   时间:2016-05-27 12:55:37    阅读次数:137
【Leetcode】Maximum Product of Word Lengths
题目链接:https://leetcode.com/problems/maximum-product-of-word-lengths/题目: Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common...
分类:其他好文   时间:2016-05-27 12:57:27    阅读次数:104
文章标题
在软件开发过程中常会用到一些工具方法,现对上一个项目所用的方法做一总结:package com.elabing.android.client.utils;import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutpu...
分类:其他好文   时间:2016-05-27 12:56:38    阅读次数:205
【Leetcode】Basic Calculator
题目链接:https://leetcode.com/problems/basic-calculator/题目: Implement a basic calculator to evaluate a simple expression string.The expression string may contain open ( and closing parentheses ), the plu...
分类:其他好文   时间:2016-05-27 12:55:30    阅读次数:153
【一天一道LeetCode】#58. Length of Last Word
一天一道LeetCode系列(一)题目 Given a string s consists of upper/lower-case alphabets and empty space characters ’ ‘, return the length of last word in the string. If the last word does not exist, return...
分类:其他好文   时间:2016-05-27 12:56:30    阅读次数:144
3.3.1 TextView(文本框)
3.3.1 TextView(文本框)标签: StudyNote 本文声明: 本文由Coder-pig编写,想了解其他内容,可见CoderPig’s Android Study Note——目录 尊重作者劳动成果,未经本人授权,禁止转载!违者必究! 目录源地址:http://blog.csdn.net/coder_pig/article/details/51348769 1.基...
分类:其他好文   时间:2016-05-27 12:56:30    阅读次数:257
【Leetcode】Jump Game
题目链接:https://leetcode.com/problems/jump-game/题目: Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu...
分类:其他好文   时间:2016-05-27 12:54:52    阅读次数:138
计算机图形学(二)输出图元_14_OpenGL像素阵列函数_1_位图函数
OpenGL中有两个函数可用于定义矩形阵列的形状或图案。一个是位图,另一个是像素图。OpenGL也提供若干的函数用于存储、复制及管理像素值阵列。函数中的参数width和height分别给出阵列bitShape的列数和行数。bitShape的每一元素赋值为0或1。值为1表示对应像素用前面设定的颜色显示;否则,对应像素不受该位图影响。(作为一个选项,可使用1表示将指定颜色与存储在刷新缓存中对应位置的颜色值相结合。)参数x0和y0定义了矩形阵列“原点”的位置。原点位置指定为bitShape的左下角,而x0和y0可...
分类:其他好文   时间:2016-05-27 12:54:51    阅读次数:339
【一天一道LeetCode】#57. Insert Interval
一天一道LeetCode系列(一)题目 Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were initially sorted according to...
分类:其他好文   时间:2016-05-27 12:53:08    阅读次数:140
LeetCode Max Points on a Line
在一个平面上有n个点,求一条直线最多能够经过多少个这些点。...
分类:其他好文   时间:2016-05-27 12:52:36    阅读次数:181
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!