From 1cece3637fa59f135fa5b9c1282bbcd319eb7bf5 Mon Sep 17 00:00:00 2001 From: sasakiroo Date: Wed, 23 Apr 2025 08:07:42 +0800 Subject: [PATCH 1/2] feat: add new term: 'tower of hanoi' --- src/content/terms/TowerOfHanoi.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/content/terms/TowerOfHanoi.json diff --git a/src/content/terms/TowerOfHanoi.json b/src/content/terms/TowerOfHanoi.json new file mode 100644 index 00000000..ac2417fb --- /dev/null +++ b/src/content/terms/TowerOfHanoi.json @@ -0,0 +1,18 @@ +{ + "title": "Tower of Hanoi", + "subtext": "A Mathematical puzzle involving three rods and a set of disks of different sizes", + "categories": ["Mathematic", "Algorithm", "Puzzle"], + "author": "Sasakiroo", + "description": { + "title":"Tower of Hanoi in Programming", + "Texts:": [ + "In programming, Tower of Hanoi — the Algorithm involves breaking down the problems into smaller subproblems", + "This algorithm let you recursively moving smaller stacks of disks to an auxiliary rod, moving the largest disk to the destination rod, then moving the smaller stack from auxiliary rod to the destination" + ], + "image": "https://upload.wikimedia.org/wikipedia/commons/0/07/Tower_of_Hanoi.jpeg", + "refrences": [ + "https://en.wikipedia.org/wiki/Tower_of_Hanoi", + "https://www.shiksha.com/online-courses/articles/tower-of-hanoi-program-in-c/" + ] + } +} \ No newline at end of file From 2a12bf8938122e7dba3c8ed397c3adfc3fc515ef Mon Sep 17 00:00:00 2001 From: Chenuli Jayasinghe Date: Wed, 23 Apr 2025 20:44:20 -0400 Subject: [PATCH 2/2] Update TowerOfHanoi.json Adjusted the categories --- src/content/terms/TowerOfHanoi.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/terms/TowerOfHanoi.json b/src/content/terms/TowerOfHanoi.json index ac2417fb..c0f4b40f 100644 --- a/src/content/terms/TowerOfHanoi.json +++ b/src/content/terms/TowerOfHanoi.json @@ -1,7 +1,7 @@ { "title": "Tower of Hanoi", "subtext": "A Mathematical puzzle involving three rods and a set of disks of different sizes", - "categories": ["Mathematic", "Algorithm", "Puzzle"], + "categories": ["Mathematic", "Programming Concepts"], "author": "Sasakiroo", "description": { "title":"Tower of Hanoi in Programming", @@ -15,4 +15,4 @@ "https://www.shiksha.com/online-courses/articles/tower-of-hanoi-program-in-c/" ] } -} \ No newline at end of file +}