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

#include <leetcode.h>

静态 Public 成员函数

static int findFinalValue (vector< int > &nums, int original)
 

详细描述

在文件 leetcode.h800 行定义.

成员函数说明

◆ findFinalValue()

int leetcode::keep_multiplying_found_values_by_two::Solution::findFinalValue ( vector< int > &  nums,
int  original 
)
static

在文件 leetcode.cpp1931 行定义.

1931 {
1932 restart:;
1933 for(const auto num: nums) {
1934 if(num == original) {
1935 original *= 2;
1936 goto restart;
1937 }
1938 }
1939 return original;
1940 }

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