problemscpp
A collection of my answers to algorithm problems in c++.
静态 Public 成员函数 | 所有成员列表
acwing::acwing53::Solution类 参考

#include <acwing.h>

静态 Public 成员函数

static vector< int > getLeastNumbers_Solution (vector< int > input, int k)
 

详细描述

在文件 acwing.h1653 行定义.

成员函数说明

◆ getLeastNumbers_Solution()

vector< int > acwing::acwing53::Solution::getLeastNumbers_Solution ( vector< int >  input,
int  k 
)
static

在文件 acwing.cpp5133 行定义.

5133 {
5134 sort(input.begin(), input.end());
5135 return vector(input.begin(), input.begin() + k);
5136 }

被这些函数引用 acwing::acwing53::TEST().


该类的文档由以下文件生成: