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

#include <leetcode.h>

静态 Public 成员函数

static bool rotateString (string s, const string &goal)
 

详细描述

在文件 leetcode.h2134 行定义.

成员函数说明

◆ rotateString()

bool leetcode::rotate_string::Solution::rotateString ( string  s,
const string &  goal 
)
static

在文件 leetcode.cpp5790 行定义.

5790 {
5791 if(s.length() != goal.length()) {
5792 return false;
5793 }
5794 s += s;
5795 return s.find(goal) != string::npos;
5796 }

被这些函数引用 leetcode::rotate_string::TEST().


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