首页
沸点
课程
AI Coding
数据标注
更多
直播
活动
APP
插件
直播
活动
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
登录
注册
MichaelJ
掘友等级
获得徽章 0
动态
文章
专栏
沸点
收藏集
关注
作品
赞
0
文章 0
沸点 0
赞
0
返回
|
搜索文章
MichaelJ
2年前
关注
C++ 二叉树的定义
```C++ class TreeNode{ private: int val; TreeNode* left; TreeNode* right; TreeNode(int...
0
评论
分享
MichaelJ
2年前
关注
C++ const_cast
const_cast是C++中的一种类型转换操作符,用于去除变量的const限定符,使其变为非const类型。他的基本语法如下 其中type表示目标类型,expressio...
0
评论
分享
MichaelJ
2年前
关注
剑指Offer 05.替换空格
在这道题中,循环条件如果是i<=j,那么会当i==j==0时,j--造成溢出的错误在这道题中,循环条件如果是i<=j,那么会当i==j==0时,j--造成溢出的错误在这道题...
0
评论
分享
MichaelJ
2年前
关注
leetcode 541 反转字符串II
C++ 中的 reverse() 函数可以用来反转容器中的元素。以下是使用 reverse() 函数反转向量(vector)的示例代码: 输出结果为: 本题使用c++ re...
0
评论
分享
MichaelJ
2年前
关注
c++ 数组
显式初始化: 字符数组初始化,可以用字符串字面值的形式,当使用这种方式时, 一定要注意字符串字面值的结尾处还有一个空字符,这个空字符也 会被拷贝到字符数组中: 不允许拷贝和...
0
评论
分享
MichaelJ
2年前
关注
C++ const关键字
在C++中,const关键字可以用于声明常量或者是函数参数,表示他们的值不能被修改。 在编译时期,c++编译器会将const常量替换为字面值,并嵌入到代码中 。这样 可以避...
0
评论
分享
MichaelJ
2年前
关注
C++ constexpr关键字
constexpr是c++11引入的一个关键字,用于声明能够在编译期间计算结果的常量表达式。 使用constexpr声明的变量或函数必须满足以下要求: 必须是编译期可计算的...
0
评论
分享
MichaelJ
2年前
关注
顶层const和底层const
在c++ Primer中: 顶层const指对象本身是一个常量 底层对象指对象指向的对象是一个常量 将同样的初始化规则应用到参数传递上可得如下形式: 尽量使用常量引用 把函...
0
评论
分享
MichaelJ
2年前
关注
常量指针&指向常量的指针
C++ Primer第五版中的提法如下: 在英文版中,const pointer,,常量指针--int* const p pointer to const指向常量的指针--...
0
评论
分享
MichaelJ
2年前
关注
leetcode-383
``` class Solution { public: bool canConstruct(string ransomNote, string magazine) { i...
0
评论
分享
MichaelJ
2年前
关注
leetcode-454
``` class Solution { public: int fourSumCount(vector& nums1, vector& nums2, vector& nu...
0
评论
分享
MichaelJ
2年前
关注
leetcode-1
``` class Solution { public: vector twoSum(vector& nums, int target) { unordered_map m...
0
评论
分享
MichaelJ
2年前
关注
leecode-349
``` set class Solution { public: vector intersection(vector& nums1, vector& nums2) { u...
0
评论
分享
MichaelJ
2年前
关注
leetcode-242
class Solution { public: bool isAnagram(string s, string t) { int hash[26] = {0}; for ...
0
评论
分享
MichaelJ
2年前
关注
leetcode-142环形列表
``` class Solution { public: ListNode *detectCycle(ListNode *head) { //n=1时 ListNode* ...
0
评论
分享
MichaelJ
2年前
关注
leetcode 160
``` class Solution { public: ListNode *getIntersectionNode(ListNode *headA, ListNode *...
0
评论
分享
MichaelJ
2年前
关注
leetcode 19
``` class Solution { public: ListNode* removeNthFromEnd(ListNode* head, int n) { ListN...
0
评论
分享
MichaelJ
2年前
关注
leetcode206
双指针法 // @lc code=start /** * Definition for singly-linked list. * struct ListNode { * ...
0
评论
分享
MichaelJ
2年前
关注
leetcode707
class MyLinkedList { public: // 定义链表节点结构体 struct LinkedNode { int val; LinkedNode* nex...
0
评论
分享
MichaelJ
2年前
关注
leetcode-203
``` class Solution { public: ListNode* removeElements(ListNode* head, int val) { ListN...
0
评论
分享
下一页
个人成就
文章被阅读
7,256
掘力值
228
关注了
32
关注者
1
收藏集
0
关注标签
0
加入于
2019-12-25