File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 247247
248248/* ----------------------------------------------------
249249DDL for Puzzle #11
250+ Permutations
250251*/ -- --------------------------------------------------
251252
252253DROP TABLE IF EXISTS #TestCases;
@@ -852,12 +853,7 @@ The Traveling Salesman is a popular puzzle in optimization.
852853https://en.wikipedia.org/wiki/Travelling_salesman_problem
853854
854855For this puzzle, I solve it by hardcoding the number of connections to 4.
855- You may wish to use recursion and set a maximum number of recursions, as
856- their is the possibility of the traveling salesman traveling back and forth
857- between the same cities.
858856
859- Alternatively, you could try and solve it with the rule that the traveling
860- salesman cannot visit each city twice.
861857----
862858Tags:
863859Recursion
12081204DDL for Puzzle #50
12091205Baseball Balls and Strikes
12101206*/ -- --------------------------------------------------
1207+
12111208DROP TABLE IF EXISTS #Pitches;
12121209GO
12131210
@@ -1359,6 +1356,7 @@ Numbers Using Recursion
13591356DDL for Puzzle #57
13601357Find The Spaces
13611358*/ -- --------------------------------------------------
1359+
13621360DROP TABLE IF EXISTS #Strings
13631361GO
13641362
13771375DDL for Puzzle #58
13781376Add Them Up
13791377*/ -- --------------------------------------------------
1378+
13801379DROP TABLE IF EXISTS #Equations;
13811380GO
13821381
You can’t perform that action at this time.
0 commit comments