From e51327bbdae8a43992546e7aacaf12a74b9c3c72 Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Fri, 29 Apr 2022 16:46:02 +0800 Subject: [PATCH] contents: reorganize algo cheatsheet --- website/sidebars.js | 64 ++++++++++++++++++++++++++++++++------------- 1 file changed, 46 insertions(+), 18 deletions(-) diff --git a/website/sidebars.js b/website/sidebars.js index 1908b13a..afea859f 100755 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -54,24 +54,52 @@ module.exports = { { 'Algorithms study cheatsheets': [ 'algorithms/study-cheatsheet', - 'algorithms/array', - 'algorithms/string', - 'algorithms/hash-table', - 'algorithms/recursion', - 'algorithms/sorting-searching', - 'algorithms/matrix', - 'algorithms/linked-list', - 'algorithms/queue', - 'algorithms/stack', - 'algorithms/tree', - 'algorithms/graph', - 'algorithms/heap', - 'algorithms/trie', - 'algorithms/interval', - 'algorithms/dynamic-programming', - 'algorithms/binary', - 'algorithms/math', - 'algorithms/geometry', + { + type: 'category', + label: 'Basics', + collapsible: false, + items: [ + 'algorithms/array', + 'algorithms/string', + 'algorithms/hash-table', + 'algorithms/recursion', + 'algorithms/sorting-searching', + ], + }, + { + type: 'category', + label: 'Data structures', + collapsible: false, + items: [ + 'algorithms/matrix', + 'algorithms/linked-list', + 'algorithms/queue', + 'algorithms/stack', + 'algorithms/interval', + ], + }, + { + type: 'category', + label: 'Advanced data structures', + collapsible: false, + items: [ + 'algorithms/tree', + 'algorithms/graph', + 'algorithms/heap', + 'algorithms/trie', + ], + }, + { + type: 'category', + label: 'Additional', + collapsible: false, + items: [ + 'algorithms/dynamic-programming', + 'algorithms/binary', + 'algorithms/math', + 'algorithms/geometry', + ], + }, ], }, {