actor6
actor6
全部文章
分类
C++(3)
leetcode(python)(17)
比赛(1)
归档
标签
去牛客网
登录
/
注册
/home
一只C++菜鸡的学习路
全部文章
(共21篇)
可变形参-initializer_list
initializer_list类型主要用于当函数实参数量未知但全部实参的类型都相同时,它时一种标准库类型。其主要操作包括:initializer_list<T>lst; //默认初始化T类型元素的空列表 initializer_list<T>lst{a,b,c...}; /...
C++
2020-11-13
0
650
C11新标准 - 范围for语句
为了简化for语句的操作,c++引入了一个更加简单的for语句操作-**范围for语句**。常规的for语句: for(initializer; condition; cxpression) statement //eg: for(auto i = 0; i < n; i++) ...
C++
范围for语句
2020-11-12
0
562
指针常量和常量指针
指针常量(const int *ptr): 指针所指向的对象是一个常量,无法通过访问该指针来改变该对象的值,但是我们可以通过其他方式去改变该对象,比如直接改变该对象的值。 #include<iostream>int main() { int i = 42; ...
2020-11-09
0
419
leetcode-508 Most Frequent Subtree Sum
Given the root of a tree, you are asked to find the most frequent subtree sum. The subtree sum of a node is defined as the sum of all the node values ...
2020-11-07
0
440
leetcode-609 Find Duplicate File in System
Given a list of directory info including directory path, and all the files with contents in this directory, you need to find out all the groups of dup...
2020-11-07
0
431
leetcode-895 Maximum Frequency Stack
Implement FreqStack, a class which simulates the operation of a stack-like data structure. FreqStack has two functions: push(int x), which pushes a...
2020-11-06
0
474
leetcode-1072 Flip Columns For Maximum Number of Equal Rows
Given a matrix consisting of 0s and 1s, we may choose any number of columns in the matrix and flip every cell in that column. Flipping a cell changes...
2020-11-04
0
446
leetcode-347 Top K Frequent Elements
Given a non-empty array of integers, return the k most frequent elements. 输入输出实例: Input: nums = [1,1,1,2,2,3], k = 2 Output: [1,2] 本题比较简单,...
2020-11-04
0
373
leetcode-451 Sort Characters By Frequency
Given a string, sort it in decreasing order based on the frequency of characters. 输入输出实例: Input: "tree" Output: "eert" E...
2020-11-03
0
465
leetcode-739 Daily Temperatures
Given a list of daily temperatures T, return a list such that, for each day in the input, tells you how many days you would have to wait until a warme...
2020-11-03
0
409
首页
上一页
1
2
3
下一页
末页