problemscpp
A collection of my answers to algorithm problems in c++.
载入中...
搜索中...
未找到
leetcode::decode_the_slanted_ciphertext 命名空间参考

LeetCode 2075. 解码斜向换位密码 更多...

class  Solution
 

函数

 TEST (decode_the_slanted_ciphertext, case1)
 
 TEST (decode_the_slanted_ciphertext, case2)
 
 TEST (decode_the_slanted_ciphertext, case3)
 
 TEST (decode_the_slanted_ciphertext, case4)
 

详细描述

LeetCode 2075. 解码斜向换位密码

函数说明

◆ TEST() [1/4]

leetcode::decode_the_slanted_ciphertext::TEST ( decode_the_slanted_ciphertext ,
case1  )

在文件 leetcode_test.cpp525 行定义.

525 {
526 ASSERT_EQ("cipher", Solution::decodeCiphertext("ch ie pr", 3));
527 }
static string decodeCiphertext(string encodedText, int rows)

引用了 leetcode::decode_the_slanted_ciphertext::Solution::decodeCiphertext().

◆ TEST() [2/4]

leetcode::decode_the_slanted_ciphertext::TEST ( decode_the_slanted_ciphertext ,
case2  )

在文件 leetcode_test.cpp529 行定义.

529 {
530 ASSERT_EQ("i love leetcode", Solution::decodeCiphertext("iveo eed l te olc", 4));
531 }

引用了 leetcode::decode_the_slanted_ciphertext::Solution::decodeCiphertext().

◆ TEST() [3/4]

leetcode::decode_the_slanted_ciphertext::TEST ( decode_the_slanted_ciphertext ,
case3  )

在文件 leetcode_test.cpp533 行定义.

533 {
534 ASSERT_EQ("coding", Solution::decodeCiphertext("coding", 1));
535 }

引用了 leetcode::decode_the_slanted_ciphertext::Solution::decodeCiphertext().

◆ TEST() [4/4]

leetcode::decode_the_slanted_ciphertext::TEST ( decode_the_slanted_ciphertext ,
case4  )

在文件 leetcode_test.cpp537 行定义.

537 {
538 ASSERT_EQ(" abc", Solution::decodeCiphertext(" b ac", 2));
539 }

引用了 leetcode::decode_the_slanted_ciphertext::Solution::decodeCiphertext().