首页 > 新文章
  • 【牛客网】最长对称子串 is a project mainly written in , based on the .  给定一个字符串(数字或大小写字母), 找出最长的对称的子串(如有多个,输出任意一个)。 例如: 输入:“abbaad” 输出:“abba” #include #include #include #include using namespace s...

  • [Linux] 010 权限管理命令 chmod is a project mainly written in , based on the .1. 权限管理命令:chmod 命令名称:chmod命令英文原意:change the permissions mode of a file命令所在路径:/bin/chmod执行权限:所有用户语法: chmod [{ugoa} {+-=} {rwx}] [文件或目录] [mode=421] [文件或目录]功能描述:改变文件或目录权限...

  • 三种求全排列方式之比较 is a project mainly written in , based on the .一共有三种求全排列的方式: 第一种就是只适合用于非可重集的DFS实现 第二种就是可以用于可重集上的刘汝佳书上的代码 第三种就是STL中的next——permutation   在对这三种方式做了比较之后发现: DFS实现的效率最高,当n = 10的时候耗时才不到2s,但是n = 11的时候耗时14s 这是因为在求排列的时候DFS没有去...

  • [HNOI2015]落忆枫音 is a project mainly written in , based on the .题目描述 不妨假设枫叶上有 n个穴位,穴位的编号为 1 ~  n。有若干条有向的脉络连接 着这些穴位。穴位和脉络组成一个有向无环图——称之为脉络图(例如图 1),穴 位的编号使得穴位 1 没有从其他穴位连向它的脉络,即穴位 1 只有连出去的脉络; 由上面的故事可知,这个有向无环图存在一个树形子图,它是以穴位 1为根的包含 全部n个穴位...

  • [转帖]tar高级教程:增量备份、定时备份、网络备份 is a project mainly written in , based on the .tar高级教程:增量备份、定时备份、网络备份 作者: lesca 分类: Tutorials, Ubuntu 发布时间: 2012-03-01 11:42 ė浏览 27,065 次 61条评论 一、概述 备份与恢复对于系统维护而言是至关重要的事情。不合理的备份与还原会让你的数据面临丢失的风险。许多用户都在丢失重要数据后才意识到这种风...

  • Https的底层原理 is a project mainly written in , based on the .Http协议:   转载于:https://www.cnblogs.com/auldlangsynezh/p/10469587.html...

  • 关于运行ssm,web请求出现HTTP415错误 is a project mainly written in , based on the .HTTP415错误:如果controller中用到了json传值,那么就必须加入 com.fasterxml.jackson.core jackson-databind  

  • React实现全选、取消全选和个别选择 is a project mainly written in , based on the .react里面实现全选和取消全选,个别选择等操作,效果如下 代码: import React, {Component} from 'react' export default class Demo extends React.Component{constructor(props,context){super(props,cont...

  • Windows 系统无法启动windows event log 服务 is a project mainly written in , based on the .windows 系统无法启动windows event log 服务 关键词:无法启动系统事件日志 尝试解决步骤 【1】权限:把如图中logsfile文件等都给local service 【2】把C:WindowsSystem32winevtLogs下面的文件全部移走到其他文件夹,再启动服务试试看  【3】清了2遍日志,终于...

  • Hive函数 get_json_object的使用 is a project mainly written in , based on the .hive提供了json的解析函数:get_json_object   使用方法 对于jsonArray(json数组),如person表的xjson字段有数据: [{"name":"王二狗","sex":"男","age":"25"},{"name":"李狗嗨","sex":"男","age":"47"}] 取出第一个json对象...

  • Js短路表达式 is a project mainly written in , based on the .今天碰见个题目,感觉短路表达式很好用。 题目: 定义一个计算圆面积的函数area_of_circle(),它有两个参数:r: 表示圆的半径;pi: 表示π的值,如果不传,则默认3.14function area_of_circle(r, pi) {} 我的写法:  if(arguments.length>=2) { ret...

  • 06 面向对象之:反射,双下方法 is a project mainly written in , based on the .一、反射 反射的概念是由Smith在1982年首次提出的,主要是指程序可以访问、检测和修改它本身状态或行为的一种能力(自省)。这一概念的提出很快引发了计算机科学领域关于应用反射性的研究。它首先被程序语言的设计领域所采用,并在Lisp和面向对象方面取得了成绩。 python面向对象中的反射:通过字符串的形式操作对象相关的属性。pytho...

  • 2019年3月8日比赛(知网是什么) is a project mainly written in , based on the .第一题(对冒泡排序原理的理解) 题意:第一行的输入代表下一行输入的无序数的数的个数,然后下一行,数字与上一行数字对应,若对应为1则该数可以与下一个数交换位置。 根据冒泡排序可知,任何一个无序序列都可以通过相邻元素交换变成有序的。如果当前数字不能交换,则判断它是否等于其下标+1,否则判断找出这一段‘1’的右边界,a对应值为0的地方...

  • Python的闭包和装饰器 is a project mainly written in , based on the .什么是闭包   python中函数名是一个特殊的变量,它可以作为另一个函数的返回值,而闭包就是一个函数返回另一个函数后,其内部的局部变量还被另一个函数引用。   闭包的作用就是让一个变量能够常驻内存。 def count():fs = []for i in range(1, 4):def f():return i*ifs.appen...

  • 积极学习的朋友 is a project mainly written in , based on the .自从去年7月反省之后,认识的朋友逐渐多了,天下那么大,优秀的人很多,通过网络认识是一个很不错的途径,经过一段时间后,圈子范围扩大了很多,行业上和非行业上都有涉及,对自己认知冲击很大,发现技术、技术之外很多想不到的事,虽然能了解到很多事,但是做技术的,首要还是看自身技术,其他的闲暇时间了解即可。 很庆幸能认识很多积极学习的朋友,看到别人...

  • 简单几步让CentOS系统时间同步 is a project mainly written in , based on the .在使用CentOS系统的时候,我们可能会遇到时间不准的问题,那我们如何解决这个我问题呢,下面就来教大家一个CentOS系统时间同步的方法,希望大家可以解决自己所存在的疑问。 CentOS系统时间同步的步骤如下: 新装的CentOS系统服务器可能设置了错误的,需要调整时区并调整时间. 如下是CentOS系统使用NTP来从一个时间服务器同...

  • Socket/ServerSocket 选项 is a project mainly written in , based on the .Socket/ServerSocket 选项 原文:Socket/ServerSocket 选项在网络编程中,Socket/ServerSocket有一些选项用来自定义一些行为,现在分享一下。   Socket选项 1.TCP_NODELAY 在Socket发送数据时,默认情况下,数据会先进入缓冲区,等缓冲区满了再发送...

  • Qt——模态、非模态 is a project mainly written in , based on the .模态: 只能操作对话框非模态:要使用 QDialog *_d = new QDialog();_d->setattribute(Qt::WA_DeleteOnClose);_d->show(); 转载于:https://www.cnblogs.com/yangxinrui/p/10515249.html...

  • 【Leecode】两数相加 is a project mainly written in , based on the .学习了链表结构,链表中元素的访问,对象指针的初始化与赋值,链表的创建(多个节点链接起来),进位计算的表达。 100ms /*** Definition for singly-linked list.* struct ListNode {* int val;* ListNode *next;* ListNode...

  • MySQL数据表命令 is a project mainly written in , based on the .显示表的相关信息: show table status like "表名";   show table status like "表名" G       格式化,以记录条目形式显示,更清晰 注意:G后面不能加分号,不然会出现查询错误。因为G在功能上等同于分号,如果在后面再加分号,那么就是出现;;两个分号了,SQL语法错误  ...