#include <leetcode.h>
|
static int | convertTime (string current, string correct) |
|
◆ convertTime()
int leetcode::minimum_number_of_operations_to_convert_time::Solution::convertTime |
( |
string |
current, |
|
|
string |
correct |
|
) |
| |
|
static |
在文件 leetcode.cpp 第 5530 行定义.
5531 const int current_h = (current[0] -
'0') * 10 + (current[1] -
'0');
5532 const int current_m = (current[3] -
'0') * 10 + (current[4] -
'0');
5533 const int correct_h = (correct[0] -
'0') * 10 + (correct[1] -
'0');
5534 const int correct_m = (correct[3] -
'0') * 10 + (correct[4] -
'0');
5535 int diff = correct_h * 60 + correct_m - (current_h * 60 + current_m);
被这些函数引用 leetcode::minimum_number_of_operations_to_convert_time::TEST().
该类的文档由以下文件生成: