ICode9

精准搜索请尝试: 精确搜索
  • hdu1062 text reverse2020-01-27 15:01:41

     咳咳,这个是为了赶量 需要注意的就是输入方式,别的也没什么难点 Problem Description Ignatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words and then output them.     Input The inpu

  • 【Leetcode】136. Single Number2020-01-25 09:36:18

    题目地址: https://leetcode.com/problems/single-number/submissions/ 给定一个数组,除了某个数只出现了一次之外,每一个数都出现了两次。求那个只出现了一次的数。注意到32位整数与亦或运算构成了一个阿贝尔群,每个元素的阶是222,参考https://blog.csdn.net/qq_46105170/articl

  • Crane POJ - 2991 区间更新 + 计算几何2020-01-24 18:02:08

    一、内容 ACM has bought a new crane (crane -- jeřáb) . The crane consists of n segments of various lengths, connected by flexible joints. The end of the i-th segment is joined to the beginning of the i + 1-th one, for 1 ≤ i < n. The beginning of the

  • 过滤器模式(Filter)2020-01-22 14:06:38

    一、定义 过滤器模式(Filter Pattern)或标准模式(Criteria Pattern)是一种设计模式,这种模式允许开发人员使用不同的标准来过滤一组对象,通过逻辑运算以解耦的方式把它们连接起来。这种类型的设计模式属于结构型模式,它结合多个标准来获得单一标准。 二、案例 创建一个类,在该类上应用

  • HDU-1048,The Hardest Problem Ever(字符串处理)2020-01-20 15:07:31

    Problem Description: Julius Caesar lived in a time of danger and intrigue. The hardest situation Caesar ever faced was keeping himself alive. In order for him to survive, he decided to create one of the first ciphers. This cipher was so incredibly sound,

  • SqlServer内存占用查看2020-01-14 12:55:01

    SELECT ISNULL(DB_NAME(DATABASE_ID),'RESOURCEDB') AS DATABASENAME, CAST(COUNT(ROW_COUNT) * 8.0 /(1024.0) AS DECIMAL(28,2)) AS 'SIZE(MB)'FROM SYS.dm_os_buffer_descriptorsGROUP BY database_idORDER BY DATABASENAME SELECT SUM(singl

  • Vue中数据选择的指令2020-01-13 21:38:56

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> .page{ background-color: palegoldenrod; } .tit

  • Js和Thymeleaf如何获取model中的值2020-01-03 09:01:58

    一、Jquery获取Model中的数据 1、将model中的值赋给hidden,然后Js获取隐藏域的值。 后台的实现: @RequestMapping("/QEditorMod1") public String QEditorMod1(ModelMap model){ model.addAttribute("staff_name","cxx" ); return "questionEditorTe

  • 数据仓库之抽取数据:openrowset函数带bulk操作符的用法2019-12-10 23:55:20

    原文:数据仓库之抽取数据:openrowset函数带bulk操作符的用法   在做数据仓库时,最重要的就是ETL的开发,而在ETL开发中的第一步,就是要从原OLTP系统中抽取数据到过渡区中,再对这个过渡区中的数据进行转换,最后把经过处理的干净的数据加载到数据仓库中。   目标数据库是sql ser

  • javaOO11-11:单例模式2019-12-10 19:03:18

    单例模式:让一个类产生的对象只有唯一的一个,减少内存中的消耗 1、立即加载方式,当类一加载,马上实例化对象 // private static Single s = new Single(); // private Single() { // } // public static Single getSingle() { // return s; // } 2、延迟加载方式(懒加载),类加载时并

  • 单例设计模式2019-12-07 09:50:39

    对所有的Java开发者而言,所有项目中最为常见的三个设计模式:工厂设计模式、代理设计模式、单例设计模式。 单例设计模式: 如果一个类中定义有普通方法,那么这些普通方法一定要通过本类的实例化对象你才可以调用。 传统调用: class Single{ public void print(){ System.out

  • A.Single Push2019-11-30 13:01:50

    题目:简单推动 题意:你被给予两个相同长度为n的数组a[1...n]和b[1...n] 目的是进行一个推入操作,你会选择l,r,k三个数字满足1 <= l <= r <= n 还有 k > 0, 你会添加k到al,al + 1,...,ar的每个数字上 例如:a = [3, 7, 1, 4, 1, 2],选择l = 3, r = 5, k = 2,那么数组a会变成 a = [3, 7, 3, 6, 3,

  • 【2019年8月】OCP 071认证考试最新版本的考试原题-第27题2019-11-14 13:55:06

    Choose two. Which two statements are true about the DUAL table? A) It can display multiple rows and columns. B) It can be accessed only by the SYS user. C) It can be accessed by any user who has the SELECT privilege in any schema D) It can display multipl

  • 微前端框架 single-spa2019-11-13 16:51:17

    单体应用对比前端微服务化 普通的前端单体应用 微前端架构   1.基本概念 实现一套微前端架构,可以把其分成四部分(参考:https://alili.tech/archive/11052bf4/) 加载器:也就是微前端架构的核心,主要用来调度子应用,决定何时展示哪个子应用, 可以把它理解成电源。 包装器:有了加载器,可以

  • maven插件生成可执行jar包2019-11-09 15:54:09

    <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-assembly-plugin</artifactId> <version>2.2.1</version> <configuration> <archive> <manifest> <

  • (C#)WPF:Property和Attribute的区别2019-11-04 10:57:10

    在C#里Property是属性,Attribute是特性。它们的概念是不一样的,充其量就是中文的神翻译问题。 1)属性是指类体里用get或set封装好的属性。属性是面向对象的理论范畴。比如说一个盒子,盒子的高度,长度,都是这个盒子的属性。在C#中实现的时候可以通过GET SET 封装。 2)特性是指应用于类,字

  • 23种设计模式2019-10-26 16:04:10

    设计模式一——单例设计模式 解决的问题,就是一个了类在内存中的对象唯一性。 必须对多个程序使用同一个配置信息对象时,需要保证该对象的唯一性。 如何保证对象唯一性呢? 不允许其他程序用new创建该类对象。 在该类中创建一个本类实例。 对外提供一个方法让其他程序可以或许

  • Image classification notes2019-10-26 10:50:30

    label   an image is represented as one large 3-dimensional array of numbers total numbers : 248*400*3 (wide*height*rgb(3 channels)) each number ranges from 0~255   Target: be invariant to the cross product of all these variations, while simultaneously ret

  • Arduino GY85 I2C测试2019-10-26 10:01:31

    Arduino GY85 I2C测试 #include <Wire.h> #define ADXL345 0x53 #define HMC5883 0x1E #define ITG3205 0x68 /*-----------ADXL345矫正-----------*/ const float alpha = 0.5; double fXg = 0; double fYg = 0; double fZg = 0; /*--------------------------------*/

  • Java基础面试总结2019-09-23 09:03:40

    Get和Post的区别1.Get是从服务器获取数据,Post是向服务器传送数据2.Get的大小2Kb,Post没有限制3.Get安全性低,Post安全性高4.上传文件使用Post 重载和重写1.重载是在同一个类中,具有相同的方法名,但参数的类型和个数不同2.重写是子类继承父类,具有相同的参数和返回值类型,但是方法体不同

  • 利用Android原生RenderScript实现仿网易云、QQ音乐播放界面效果2019-09-02 20:38:00

    国际惯例先上图: QQ音乐效果图: Demo效果图: 高斯模糊工具类: /** * <pre> * author : Hansel * e-mail : oysqloveyou@163.com * desc : 毛玻璃工具类 * version: 1.0 * </pre> */ public class BlurUtil { /** * 获取高斯模糊Drawable

  • LeetCode-Single Number II2019-09-02 09:56:40

    LeetCode地址:https://leetcode.com/problems/single-number-ii/ Problem:Given an array of integers, every element appears three times except for one. Find that single one. Note:Your algorithm should have a linear runtime complexity. Could you implement it wit

  • Blender建模模块:添加一个顶点(single vertex)的优雅方式2019-08-30 13:35:53

    本文基于Blender2.8正式版 Blender 2.8中Shift + A菜单里没有提供新建single vertex的选项,看某大神的视频,貌似是有插件提供此选项,没查到是哪个插件。况且单纯为这个需求安一个插件也不太值得。以前我添加顶点都是傻乎乎按照如下步骤来的: (Shift + A)创建平面->进入编辑模

  • 单节点的es添加另外一个节点组成主从集群2019-08-29 17:00:19

    环境:OS:Centos 7DB:6.5.0 192.168.1.135:19200 现有的单节点192.168.1.134:19200 准备新添加的节点 --------新节点(192.168.1.134)安装es---------------1.安装跟现有版本一致的es我这里的版本是6.5.0[root@localhost hxlmiao]# tar -xvf elasticsearch-6.5.0.tar.gz[root@local

  • 机器学习——简单线性回归之向量法(代码实现)2019-08-28 13:52:44

    最小二乘法实现:   机器学习——简单线性回归(原理推导+算法描述+代码实现)   向量法代码实现:   简单的来说就是将最小二乘法计算分子分母的for改成使用向量法运算,使得性能大幅度的提升   与上一篇博客代码的区别在于第19、20行。 1 class SimpleLinearRegression2: 2 d

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有