找到约 10000 条结果
  • goLang 之 type Method Value 和Method Expressions
    instance就是Receiver. 左边的称为Method value.右边的则是Method Expression.其实goLang 是推荐使用左边形式的,因为比较好理解。Method Value是包装后的状态对象,总是与特定的对象实例关联在一起,而Method Expression函数将Receiver作为第一个显示参数,调用时需手动传递。二者本质没有什么区别。
    2018-02-05
  • Python基础练习100题 ( 21~ 30)
    A robot moves in a plane starting from the original point (0,0). The robot can move toward UP, DOWN, LEFT and RIGHT with a given steps. The trace of robot movement is shown as the following:
    2019-06-04
  • leetcode 5 Longest Palindromic Substring Java & JavaScript解法
    Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.题目的意思是输入一个字符串,我们要找到这个字符串的最长的满足回文条件的子字符串。回文的意思就是反转字符串后和原字符串相等。 Example:Input: "babad"Output: "bab"Note: "aba" is also a va...
    2018-03-01
  • Flip Game II
    Flip Game II 题目链接:[链接] dp的题,可以直接暴力dfs,优化可以加memory,只有当所有可能的subproblem都是false的时候,当前结果才是false: {代码...}
    2017-02-10
  • Windows下编译 Hadoop-2.9.2
    Windows下编译 Hadoop-2.9.2 系统环境 {代码...} Hadoop源码包你们的的编译环境要求 {代码...} 编译必须要设置的环境变量 1.JAVA_HOME必须要设置这个环境变量指向jdk的安装目录 2.Platform这个环境变量也必须设置32位系统为Platform=Win3264位系统为Platform=x64 3.ZLIB_HOME为你zlib的安装目录例如ZLIB_HOME=C:\zlib-1....
    2019-05-08
  • 【leetcode】91. Decode Ways A-Z的字母表示1-26的数字,反向破解多少种字符串的可能性
    A message containing letters from A-Z is being encoded to numbers using the following mapping:
    2016-11-08
  • [LintCode] Route Between Two Nodes in Graph [DFS/BFS]
    Given a directed graph, design an algorithm to find out whether there is a route between two nodes.
    2016-03-29
  • linux常用命令-查看cpu、内存、磁盘和目录空间
    查看磁盘空间: df -h {代码...} {代码...} 查看目录占用大小: du -sh {代码...} {代码...} 按照占用空间降序排列就是 |sort -nr sort -n 用数字方式排; -r 逆序 du -hs * --> * 表示目录下的所有文件的各自汇总,不是整体汇总,分开汇总。 top 动态查看进程(相对于ps) 以及进程所占CPU、MEM等按q离开。 -d 后面跟...
    2020-04-10
  • 【哈工大版】Dynamic ReLU:自适应参数化ReLU(调参记录12)
    自适应参数化ReLU是一种动态ReLU(Dynamic ReLU),于2019年5月3日投稿至IEEE Transactions on Industrial Electronics,于2020年1月24日录用,于2020年2月13日在IEEE官网公布。
    2020-05-25
  • 单词翻转
    输入一个英文句子,翻转句子中单词的顺序。要求单词内字符的顺序不变,句子中单词以空格符隔开。为简单起见,标点符号和普通字母一样处理。例如,若输入“I am a student.” 则输出“student. a am I”;注意:句子中可能出现连续多个空格如“ I am a student.” 此时翻转结果需要一致,即只有一个空格
    2019-08-15
  • 【哈工大版】动态ReLU:自适应参数化ReLU激活函数(调参记录13)
    自适应参数化ReLU是一种动态ReLU(Dynamic ReLU),于2019年5月3日投稿至IEEE Transactions on Industrial Electronics,于2020年1月24日录用,于2020年2月13日在IEEE官网公布。
    2020-05-25
  • [LeetCode] 寻找最长回文字串
    Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring.
    2014-03-31
  • c语言经典题目:在字符串的指定位置插入字符
    题目请编写程序,实现以下功能:在字符串中的所有数字字符前加一个$字符。例如,输入 A1B23CD45,输出 A$1B$2$3CD$4$5。 思路:观察规律可发现插入的字母只会在排在数字前面,不会影响字母。因此完整代码如下 {代码...}
    2022-05-20
  • mysql(常用)
    常用的操作 自增重新计数 {代码...} 分页查询 {代码...} 字符串替换 {代码...} 字符串替换 {代码...} 多行合为一行 {代码...} 多列合为一列 {代码...} ifnull {代码...} if {代码...} case查询不同条件结果 {代码...}
    2019-04-11
  • AWS CLI入门教程(亲测)
    因为公司有用到S3,所以整理了一个S3的简单入门教程。当然,入门之后有其他更高级的用法需求,就靠自己去查文档了。入门的教程能让你快速上手,不至于翻阅一堆文档,容易被劝退。这里主要是介绍如何用cli去操作S3。
    2023-05-05
  • 深度残差网络+自适应参数化ReLU激活函数(调参记录12)
    本文在调参记录10的基础上,在数据增强部分添加了zoom_range = 0.2,将训练迭代次数增加到5000个epoch,批量大小改成了625,测试Adaptively Parametric ReLU(APReLU)激活函数在Cifar10图像集上的效果。
    2020-05-11
  • 557. Reverse Words in a String III
    Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order.
    2019-03-05