Skip to content

Commit 2910084

Browse files
Update Advanced SQL Puzzles DDL.sql
1 parent 6627c18 commit 2910084

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

Advanced SQL Puzzles/Advanced SQL Puzzles DDL.sql

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ GO
247247

248248
/*----------------------------------------------------
249249
DDL for Puzzle #11
250+
Permutations
250251
*/----------------------------------------------------
251252

252253
DROP TABLE IF EXISTS #TestCases;
@@ -852,12 +853,7 @@ The Traveling Salesman is a popular puzzle in optimization.
852853
https://en.wikipedia.org/wiki/Travelling_salesman_problem
853854
854855
For 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
----
862858
Tags:
863859
Recursion
@@ -1208,6 +1204,7 @@ GO
12081204
DDL for Puzzle #50
12091205
Baseball Balls and Strikes
12101206
*/----------------------------------------------------
1207+
12111208
DROP TABLE IF EXISTS #Pitches;
12121209
GO
12131210

@@ -1359,6 +1356,7 @@ Numbers Using Recursion
13591356
DDL for Puzzle #57
13601357
Find The Spaces
13611358
*/----------------------------------------------------
1359+
13621360
DROP TABLE IF EXISTS #Strings
13631361
GO
13641362

@@ -1377,6 +1375,7 @@ GO
13771375
DDL for Puzzle #58
13781376
Add Them Up
13791377
*/----------------------------------------------------
1378+
13801379
DROP TABLE IF EXISTS #Equations;
13811380
GO
13821381

0 commit comments

Comments
 (0)