风云159
码龄12年
关注
提问 私信
  • 博客:29,146
    29,146
    总访问量
  • 43
    原创
  • 1,646,463
    排名
  • 6
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:北京市
  • 加入CSDN时间: 2012-08-28
博客简介:

js54100804的专栏

博客描述:
123
查看详细资料
个人成就
  • 获得21次点赞
  • 内容获得6次评论
  • 获得57次收藏
创作历程
  • 29篇
    2018年
  • 13篇
    2017年
  • 5篇
    2015年
成就勋章
TA的专栏
  • 台湾大学机器学习
    2篇
  • 深度学习笔记
    5篇
  • zookeeper源码分析
    5篇
  • 数据库
    1篇
  • IntelliJ IDEA相关
    1篇
  • hadoop源码分析
    2篇
  • spark1.5源码分析
    2篇
  • 并发多线程
    4篇
  • 机器学习代码
    2篇
  • maven
  • deeplearning.ai课程笔记
  • leetcode
    4篇
  • lintcode
    5篇
  • 剑指offer
    1篇
  • 牛客竞赛
    1篇
  • c++
    9篇
创作活动更多

仓颉编程语言体验有奖征文

仓颉编程语言官网已上线,提供版本下载、在线运行、文档体验等功能。为鼓励更多开发者探索仓颉编程语言,现诚邀各位开发者通过官网在线体验/下载使用,参与仓颉体验有奖征文活动。

368人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

markdown笔记

1.颜色字体大小设置:<font size =4 color='red'>2.公式:    下标 :$v_t$   (v代表字母,t代表下标的那个)      上标:$v^[t]$   拉丁文:$\beta$(对应beta)...
原创
发布博客 2018.06.05 ·
225 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

9.重载操作符

#include<iostream>#include<cmath>using namespace std;class Num {public: Num(int a) { this->a = a; } void print() { cout << a << endl; } //也可以在内部提供一个+号操作符重载,但和全...
原创
发布博客 2018.06.01 ·
182 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

8.友元函数友元类

#include<iostream>#include<cmath>using namespace std;class Point;class PointManager { double getDistance(Point& x1, Point& x2);};class Point {public: Point(int x) { this...
原创
发布博客 2018.05.31 ·
261 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

7.this指针

#include<iostream>using namespace std;class Test {public: Test(int k) :m_k(k) { }; ~Test() { delete this; } int get_k() const { /* this是一个常指针 Test* const this,说明不可以修改this指向的地址, 但...
原创
发布博客 2018.05.31 ·
139 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

6.函数指针

#include<iostream>using namespace std;/* 函数指针,三种方式*/int f(int a, int b){ return a + b;}//方法一:声明一个函数类型typedef int(myFun1)(int, int);//方法二:声明一个函数指针类型typedef int(*myFun2)(int, int);//最常...
原创
发布博客 2018.05.30 ·
148 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

5.字符串常量

#include<iostream>#include<vector>using namespace std;//1.每个字符串常量都是一个地址,这个地址是指字符串首元素地址//2.字符串常量放在data区(文字常量区),内容是只读的,不可修改void fun() { printf("%p
", "hello word");//01398BD2}int ma...
原创
发布博客 2018.05.30 ·
578 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

4.形参中的数组是指针变量

#include<iostream>using namespace std;/* 形参中的数组,不是数组,是指针(对应数据首元素地址,用sizeof获取的是指针大小,而不是数组大小) 形参数组:int a[100], int[a], int *a 对编译器而言是一样的,都当做int *处理*/void f(int a[100]){ cout << sizeof...
原创
发布博客 2018.05.29 ·
946 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

3.const修饰指针

#include<iostream>using namespace std;//const修饰的指针int main(){ int a = 10; //const int *p 和int const *p 是一样的。 //const修饰的是 *,表明指针所指向的地址中的数据不可修改,但可以修改指针所指向的地址 const int *p = &a; int con...
原创
发布博客 2018.05.29 ·
189 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

2.万能指针

#include<iostream>using namespace std;/***万能指针**/int main(){ //1.不可以定义void类型的普通变量,不能确定类型 //void a; //2.可以定义void* 变量,也叫万能指针,可以指向任何类型的变量 // 但是使用该指针所指向的内存时,需要把该指针转化成对应类型 void* p = NULL;...
原创
发布博客 2018.05.29 ·
254 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

1.指针大小

#include<iostream>using namespace std;int main() { //32位编译器用32位(4字节)大小保存地址 //64位编译器用64位(8字节)大小保存地址 int a = sizeof(int*); int b = sizeof(char*); double* p; int c = sizeof(p); //指针大小是一样的...
原创
发布博客 2018.05.29 ·
369 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

tf.Variable和tf.get_variable的区别

Variabletensorflow中有两个关于variable的op,tf.Variable()与tf.get_variable()下面介绍这两个的区别tf.Variable与tf.get_variable()tf.Variable(initial_value=None, trainable=True, collections=None, v...
转载
发布博客 2018.05.26 ·
8751 阅读 ·
11 点赞 ·
0 评论 ·
15 收藏

[字符串处理] 译码

链接:https://www.nowcoder.com/acm/contest/124/A来源:牛客网题目描述 现在定义一种编码规则:对于长度为3的字符串(均由小写字母组成),首先按照字典序进行排序,即aaa,aab,aac,…,zzz, 将这些字符串按照顺序依次从00001至17575编码(前缀0不可省略),即aaa=00000,aab=00001,aac=00002,…,zzz=175...
原创
发布博客 2018.05.23 ·
551 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

BatchNormlization原理解读

https://blog.csdn.net/zhikangfu/article/details/53391840
转载
发布博客 2018.05.11 ·
902 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

堆排序

package sort;import java.util.Arrays;public class HeapSort { public static void sort(int []arr){ //1.构建大顶堆 for(int i=arr.length/2-1;i>=0;i--){ //从第一个非叶子结点从下至上,从右...
原创
发布博客 2018.05.10 ·
133 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【剑指offer】孩子们的游戏

package problem;/** * 约瑟夫环问题,假设有10个孩子,则初始编号为 0,1,2,3,4,5,6,7,8,9 * m = 3, 即每次报到 m-1=2的孩子出局 * 第一轮 2号出局 剩下 0 1 3 4 5 6 7 8 9 * 第二轮从3开始计数,我们重新编号 7 8 0 1 2 3 4 5 6 *
原创
发布博客 2018.05.10 ·
274 阅读 ·
1 点赞 ·
1 评论 ·
0 收藏

[发散思维]求1+2+3...

求1+2+3+...+n,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。思路:利用逻辑与的短路能力public class Solution { public int Sum_Solution(int n) { int result = n; boolean f = (n!=0) &
原创
发布博客 2018.05.10 ·
173 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

归并排序

package problem;import java.util.Arrays;public class MergeSort{ int temp[]; void sort(int arr[]){ int start = 0; int end = arr.length - 1; temp = new int[arr.le
原创
发布博客 2018.05.10 ·
101 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

冒泡排序

package problem;import java.util.Arrays;public class BubbleSort{ static void sort(int arr[]){ boolean flag = true; int end = arr.length - 1; while(flag){ f
原创
发布博客 2018.05.10 ·
109 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

[LeetCode] 164. Maximum Gap

/*** 桶排序,如果每个桶的只有1个元素,无需桶内排序,时间复杂度O(n) 不过这题最需记录每个桶的最大,最小值,也不用桶内排序,所以复杂度O(n)**/public class Solution { class Bucket{ boolean valid =false; int max = Integer.MIN_VALUE; int min = Inte...
原创
发布博客 2018.05.07 ·
106 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

[LintCode] 15. Permutations

public class Solution { /* * @param nums: A list of integers. * @return: A list of permutations. */ public List> permute(int[] nums) { List> result = new ArrayList>();
原创
发布博客 2018.05.03 ·
136 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多