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

#include <acwing.h>

静态 Public 成员函数

static string leftRotateString (string str, int n)
 

详细描述

在文件 acwing.h1527 行定义.

成员函数说明

◆ leftRotateString()

string acwing::acwing78::Solution::leftRotateString ( string  str,
int  n 
)
static

在文件 acwing.cpp4873 行定义.

4873 {
4874 ostringstream oss;
4875 for(int i = 0; i < str.length(); i++) {
4876 oss << str[(n + i) % str.length()];
4877 }
4878 return oss.str();
4879 }

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


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