码迷,mamicode.com
首页 > 2015年06月22日 > 全部分享
1.A+B Format
Calculate a + b and output the sum in standard format — that is, the digits must be separated into groups of three by commas (unless there are less than four digits). Input Each input file contain...
分类:其他好文   时间:2015-06-22 11:13:26    阅读次数:110
leetcode_36_Valid Sudoku
Valid Sudoku 欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cells are fil...
分类:其他好文   时间:2015-06-22 11:13:05    阅读次数:141
Java--Reflect(反射)专题5——方法反射的基本操作
转载请注明:http://blog.csdn.net/uniquewonderq 1.如何获取某个方法 方法的名称和方法的参数列表才能唯一决定某个方法 2.方法的反射操作 method.invoke(对象,参数列表) 1.获取一个方法就是获取类的信息,获取类的信息,首先要获取类的类类型。  2.获取方法名称和参数列表来决定             getMethod获取的是p...
分类:编程语言   时间:2015-06-22 11:11:54    阅读次数:123
struts2中使用JSTL读取action中的变量注意事项
背景:今天做个项目过程中,一种无法使用${}去读取后台对象的值,只可以获取简单对象定义的值 String user。 原因:我在定义变量的时候,使用了小写t开头,导致了jstl无法获取到值; 例如:错误的定义方式 private TSysUser tSysUser;      正确的定义方式 private TSysUser user;...
分类:Web程序   时间:2015-06-22 11:10:26    阅读次数:129
leetcode_48_Rotate Image
Rotate Image   欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up: Could you do this in-place?...
分类:其他好文   时间:2015-06-22 11:11:54    阅读次数:116
leetcode_73_Set Matrix Zeroes
Set Matrix Zeroes   欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Follow up: Did you use extra space? A s...
分类:其他好文   时间:2015-06-22 11:12:40    阅读次数:113
leetCode(23):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 right to left for the next level and alternate between). For example: Given binary ...
分类:其他好文   时间:2015-06-22 11:11:22    阅读次数:99
Linux_RedHat下 RPM方式安装MySQL5.6
Linux_RedHat下 RPM方式安装MySQL5.6,网上写得文章很多很杂,安装方式有多种,使用rpm的方式尝试了一下,记录了安装的步骤,分享给大家。在安装的过程中,要按部就班,不要急躁,不要落掉某个步骤...
分类:数据库   时间:2015-06-22 11:12:16    阅读次数:254
leetcode_89_Gray Code
Gray Code   欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the to...
分类:其他好文   时间:2015-06-22 11:11:12    阅读次数:115
美化的下拉框select2
今天,向大家介绍一款简单、实用的JQuery插件——select2。 select2是对select下拉框的改进。如果你对界面的美感又一定要求,你一定会抛弃select,坚决的选择select2阵营。 select2的使用非常简单。我将它在项目中的应用总结成了两个demo,你一定会为它的简单实用大为震惊。...
分类:其他好文   时间:2015-06-22 11:11:29    阅读次数:133
leetcode_134_Gas Station
Gas Station There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it costs cost[i] of gas to travel f...
分类:其他好文   时间:2015-06-22 11:09:12    阅读次数:95
数据结构学习之二叉树(性质总结)
1、二叉树结点编号在一棵n个结点的完全二叉树中,从树根起,自上层到下层,每层从左至右,给所有结点编号,能得到一个反映整个二叉树结构的线性序列。 编号特点 2、二叉树性质...
分类:其他好文   时间:2015-06-22 11:09:34    阅读次数:119
【BZOJ1069】【SCOI2007】最大土地面积 凸包 单调性
题解:先求凸包,然后:枚举点 ii ,然后对于 点 jj 得到的 ii 与 jj (有序) 中间的点,以及 jj 与 ii (有序) 中间的点,都是单调的。代码:#include #include #include #include #include #define N 2050 #define ep...
分类:其他好文   时间:2015-06-22 11:10:52    阅读次数:117
Effective C++ 条款8
别让异常逃离析构函数为什么别让异常逃离析构函数,异常逃离析构函数会引发哪些问题?很明显,异常会带来不明确的行为。 如下代码: 当容器销毁时会调用析构函数,这时如果析构函数抛出异常,容器中剩余的元素还是应该被销毁,否则可能会有内存泄露。这时如果继续销毁其他元素,又出现异常的话,会同时存在两个异常。两个异常同时存在会导致不明确的行为。使用标准库的其他容器或TR1的任何容器或者array,也会遇到类似...
分类:编程语言   时间:2015-06-22 11:09:29    阅读次数:232
字符串,二进制数据的互转
/** * 将二进制字符串转为正常字符串 * @param sBin * @return */ private static String BinaryToString(String sBin) { StringBuffer sb = new StringBuffer(); //将sBin分割成String数组...
分类:其他好文   时间:2015-06-22 11:09:19    阅读次数:138
数据挖掘十大算法之k-means算法
k-means算法主要是用来解决什么问题呢?主要是用来解决类似于这样的问题:聚类,如一次班级聚餐,平时玩的好的同学,就会自动的聚集在一起愉快的玩耍。那么什么样才算平时玩的好呢?请看k-means算法。 K-means算法是硬聚类算法,是典型的基于原型的目标函数聚类方法的代表,它是数据点到原型的某种距离作为优化的目标函数,利用函数求极值的方法得到迭代运算的调整规则。K-means算法以欧式距离作为相似度测度,它是求对应某一初始聚类中心向量V最优分类,使得评价指标J最小。算法采用误差平方和准...
分类:编程语言   时间:2015-06-22 11:09:19    阅读次数:163
interface Gazebo and ROS.
CMakeLists.txt cmake_minimum_required(VERSION 2.8.3) project(YOURROBOT_gazebo_plugins) find_package(catkin REQUIRED COMPONENTS gazebo_ros ) # Depend on system install of Gazebo find_package(gazeb...
分类:其他好文   时间:2015-06-22 11:10:43    阅读次数:136
1148条   上一页 1 ... 50 51 52 53 54 55 56 ... 68 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!