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