Beispiel #1
0
 def test_removeDuplicateLetters_1(self):
     self.assertEqual("acdb", Solution().removeDuplicateLetters("cbacdcbc"))
Beispiel #2
0
 def test_removeDuplicateLetters(self):
     self.assertEqual("abc", Solution().removeDuplicateLetters("bcabc"))
Beispiel #3
0
 def test_removeDuplicateLetters_7(self):
     self.assertEqual("bca",
                      Solution().removeDuplicateLetters("bcbcbcababa"))
Beispiel #4
0
 def test_removeDuplicateLetters_5(self):
     self.assertEqual("letcod",
                      Solution().removeDuplicateLetters("leetcode"))
Beispiel #5
0
 def test_removeDuplicateLetters_4(self):
     self.assertEqual("eacb", Solution().removeDuplicateLetters("ecbacba"))
Beispiel #6
0
 def test_removeDuplicateLetters_2(self):
     self.assertEqual("adbc", Solution().removeDuplicateLetters("cdadabcc"))