Skip to content

Commit

Permalink
#33 Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
debojyoti-majumder committed Jun 7, 2019
1 parent 03ad2f8 commit d5398af
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions 2019Q2/leetcode767.hpp
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"), "");
}
}
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "2019Q2/leetcode816.hpp"
#include "2019Q2/leetcode525.hpp"
#include "2019Q2/leetcode056.hpp"
#include "2019Q2/leetcode767.hpp"

int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
Expand Down

0 comments on commit d5398af

Please sign in to comment.