예제 #1
0
        public void Test_Generic(string listStr, int k, string expectedStr)
        {
            var head     = ListNodeHelper.BuildList(listStr);
            var sol      = new Solution();
            var res      = sol.SplitListToParts(head, k);
            var expected = ListNodeHelper.BuildListArray(expectedStr);

            Assert.IsTrue(ListNodeHelper.AreEqual(res, expected));
        }