problemscpp
A collection of my answers to algorithm problems in c++.
| 函数
leetcode::partition_labels 命名空间参考

  1. Partition Labels
更多...

class  Solution
 

函数

 TEST (partition_labels, case1)
 
 TEST (partition_labels, case2)
 

详细描述

  1. Partition Labels

函数说明

◆ TEST() [1/2]

leetcode::partition_labels::TEST ( partition_labels  ,
case1   
)

在文件 leetcode_test.cpp3428 行定义.

3428 {
3429 const vector output = {9, 7, 8};
3430 ASSERT_EQ(output, Solution::partitionLabels("ababcbacadefegdehijhklij"));
3431 }

引用了 leetcode::partition_labels::Solution::partitionLabels().

◆ TEST() [2/2]

leetcode::partition_labels::TEST ( partition_labels  ,
case2   
)

在文件 leetcode_test.cpp3433 行定义.

3433 {
3434 const vector output = {10};
3435 ASSERT_EQ(output, Solution::partitionLabels("eccbbbbdec"));
3436 }

引用了 leetcode::partition_labels::Solution::partitionLabels().