首页
学习
活动
专区
工具
TVP
发布

chenjx85的技术专栏

专栏成员
207
文章
195702
阅读量
44
订阅数
c/c++再学习:C++中public、protect、private的访问权限控制
一个类的public成员变量、成员函数,可以通过类的成员函数、类的实例变量进行访问
chenjx85
2019-05-25
1.3K0
友元函数和友元类
友元提供了不同类的成员函数之间、类的成员函数与一般函数之间进行数据共享的机制。通过友元,一个不同函数或另一个类中的成员函数可以访问类中的私有成员和保护成员。c++中的友元为封装隐藏这堵不透明的墙开了一个小孔,外界可以通过这个小孔窥视内部的秘密。
chenjx85
2019-05-25
1.1K0
c++类定义和类实现
c++中我们cpp文件和.h文件的区别是,cpp文件是需要编译的文件,成为一个独立的编译单元,而h文件从来是不需要编译,只是用于预处理。
chenjx85
2019-05-25
3K0
c++中的const和volatile知识自我总结
1、const限制一个变量不能修改其内容,如果强行修改的话,如下面代码这样子,编译就会报错,“表达式必须是可修改的左值”。
chenjx85
2019-05-06
5980
P与NP问题
在了解P与NP问题之前,先看两个定义,一个是多项式时间复杂度,一个是指数型时间复杂度。
chenjx85
2019-04-18
9440
关于c++11中的thread库
c++11中新支持了thread这个库,常见的创建线程、join、detach都能支持。
chenjx85
2019-03-22
8910
leetcode-191-Number of 1 Bits
Write a function that takes an unsigned integer and returns the number of '1' bits it has (also known as the Hamming weight).
chenjx85
2019-03-21
3150
leetcode-189-Rotate Array
Given an array, rotate the array to the right by k steps, where k is non-negative.
chenjx85
2019-03-21
4410
leetcode-125-Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
chenjx85
2019-03-21
3050
leetcode-121-Best Time to Buy and Sell Stock
Say you have an array for which the ith element is the price of a given stock on day i.
chenjx85
2019-03-21
3250
leetcode-119-Pascal's Triangle II(生成某一行的帕斯卡三角形)
Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle.
chenjx85
2019-03-21
4110
leetcode-118-Pascal's Triangle(生成具有n行的帕斯卡三角形)
Given a non-negative integer numRows, generate the first numRows of Pascal's triangle.
chenjx85
2019-03-21
7050
leetcode-88-Merge Sorted Array
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.
chenjx85
2019-03-21
3880
2018 年力扣高频算法面试题汇总-难题记录-鸡蛋掉落
你知道存在楼层 F ,满足 0 <= F <= N 任何从高于 F 的楼层落下的鸡蛋都会碎,从 F 楼层或比它低的楼层落下的鸡蛋都不会破。
chenjx85
2019-03-19
1.2K0
leetcode-198-House Robber(动态规划)
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security system connected and it will automatically contact the police if two adjacent houses were broken into on the same night.
chenjx85
2019-03-15
5770
关于c++类的一些知识的总结
经过查阅https://www.cnblogs.com/kkshaq/p/4660073.html博客的说法,类的声明是在.h文件中完成的,也就是声明一个类但是没有具体写出它的实现。
chenjx85
2019-03-15
4350
leetcode-66-Plus One
Given a non-empty array of digits representing a non-negative integer, plus one to the integer.
chenjx85
2019-03-14
3880
leetcode-303-Range Sum Query - Immutable
Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.
chenjx85
2019-03-14
3650
leetcode-292-Nim Game(搬石子)
You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 stones. The one who removes the last stone will be the winner. You will take the first turn to remove the stones.
chenjx85
2019-03-14
5090
leetcode-283-Move Zeroes
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.
chenjx85
2019-03-14
3990
点击加载更多
社区活动
【纪录片】中国数据库前世今生
穿越半个世纪,探寻中国数据库50年的发展历程
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档