예제 #1
0
 static void Main(string[] args)
 {
     SetStackQueueDeckTester.TEST();
     SortTest.TEST();
     HashTableTest.TEST();
     BinaryTreeTester.TEST();
     GraphTester.TEST();
 }
예제 #2
0
파일: Program.cs 프로젝트: sqhEvil/LeetCode
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            var      aa   = "\\\\ \\ \\\\ \\";
            var      bb   = aa.Replace("\\\\", "\\");
            SortTest sort = new SortTest();

            sort.Test();
            //_1228Solution _1228 = new _1228Solution();
            //_1228.RemoveCoveredIntervals(_1228.CreateData());
            _40._40Solution solution = new _40._40Solution();
            int[]           vs       = { 10, 1, 2, 7, 6, 1, 5 };
            solution.CombinationSum2(vs, 8);
            //_47._47Solution solution = new _47._47Solution();
            //int[] vs = { 1, 2, 3, 4 };
            //solution.PermuteUnique(vs);
            Console.Read();
        }
예제 #3
0
        public async Task <ActionResult <SortTest> > Post(SortTest sort)
        {
            try
            {
                if (sort == null)
                {
                    return(BadRequest());
                }
                db.SortTest.Add(sort);
                await db.SaveChangesAsync();

                return(Ok(sort));
            }
            catch (Exception e)
            {
                return(BadRequest(e.Message));
            }
        }