-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03ad2f8
commit d5398af
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
Problem URL: https://leetcode.com/problems/reorganize-string/ | ||
Problem Id: 767 | ||
Issue Id: 33 | ||
*/ | ||
|
||
#include <string> | ||
#include "gtest/gtest.h" | ||
|
||
namespace Leetcode767 { | ||
using namespace std; | ||
|
||
class Solution { | ||
public: | ||
string reorganizeString(string S) { | ||
return ""; | ||
} | ||
}; | ||
|
||
GTEST_TEST(Leet767, Test1) { | ||
Solution s; | ||
ASSERT_THAT(s.reorganizeString("aab"), "aba"); | ||
} | ||
|
||
GTEST_TEST(Leet767, Test2) { | ||
Solution s; | ||
ASSERT_THAT(s.reorganizeString("aaab"), ""); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters