Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/algo_buttons/LRU Cache.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion src/AlgoList.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const algoMap = {
Kruskal: ["Kruskal's", algos.Kruskals, true],
DisjointSet: ['Disjoint Set', algos.DisjointSet, true],
LCS: ['LCS', algos.LCS, true, 'Longest Common Subsequence'],
LRU: ['LRU Cache', algos.LRU, true, 'LRU Cache'],
Floyd: ['Floyd-Warshall', algos.Floyd],
TreeMap: ['TreeMap', algos.TreeMap],
};
Expand Down Expand Up @@ -120,6 +121,7 @@ const baseAlgoList = [
'---',
'DP & Extras',
'SplayTree',
'LRU',
'Floyd',
'DropSort',
'SleepSort',
Expand Down Expand Up @@ -197,7 +199,8 @@ export const relatedSearches = {
Dijkstra: ['BFS', 'DFS', 'Prim', 'Kruskal', 'DisjointSet'],
Prim: ['BFS', 'DFS', 'Dijkstra', 'Kruskal', 'DisjointSet'],
Kruskal: ['BFS', 'DFS', 'Dijkstra', 'Prim', 'DisjointSet'],
LCS: ['Floyd'],
LCS: ['Floyd', 'LRU'],
LRU: ['ClosedHash', 'OpenHash', 'DoublyLinkedList', 'LCS'],
Floyd: ['LCS'],
TreeMap: ['AVL', 'ClosedHash', 'OpenHash'],
};
Expand Down Expand Up @@ -351,6 +354,10 @@ export const algoFilter = [
id: 'Floyd',
category: 'DP & Extras',
},
{
id: 'LRU',
category: 'DP & Extras',
},
{
id: 'CreateGraph',
category: 'Graphs',
Expand Down
Loading
Loading