Häufig verwendete Methoden
Häufig verwendete Methoden
Häufig verwendete Methoden
Häufig verwendete Methoden
public void CombinationSum2_Solutions(int[] candidates, int target, string expectedJson) { List <IList <int> > expected = JsonConvert.DeserializeObject <List <IList <int> > >(expectedJson); var solution = new Solution(); var result = solution.CombinationSum2(candidates, target); Assert.AreEqual(JsonConvert.SerializeObject(expected.OrderBy(l => string.Join(',', l))), JsonConvert.SerializeObject(result.OrderBy(l => string.Join(',', l)))); }