@@ -207,7 +207,7 @@ export default function UniquePathsVisualizer() {
207207 const [ currentStep , setCurrentStep ] = useState ( - 1 ) ;
208208 const [ isDragging , setIsDragging ] = useState ( false ) ;
209209 const [ dragMode , setDragMode ] = useState < string | null > ( null ) ;
210- const [ shortestMode , setShortestMode ] = useState ( false ) ;
210+ const [ shortestMode , setShortestMode ] = useState ( true ) ;
211211 const [ start , setStart ] = useState ( [ 0 , 0 ] ) ;
212212 const [ end , setEnd ] = useState ( [ 5 , 5 ] ) ;
213213
@@ -549,10 +549,24 @@ export default function UniquePathsVisualizer() {
549549 Pathfinding Visualizer
550550 </ h1 >
551551 < p className = "text-gray-400" >
552- { shortestMode
553- ? "Dijkstra's Shortest Path Algorithm"
554- : "Unique Paths DP" }
555- </ p >
552+ { shortestMode
553+ ? "Dijkstra's Shortest Path Algorithm"
554+ : (
555+ < >
556+ Unique Paths DP (
557+ < a
558+ href = "https://leetcode.com/problems/unique-paths-ii/description/"
559+ target = "_blank"
560+ rel = "noopener noreferrer"
561+ className = "underline hover:text-gray-300 transition-colors duration-200"
562+ >
563+ LeetCode Problem
564+ </ a >
565+ )
566+ </ >
567+ ) }
568+ </ p >
569+
556570 </ div >
557571
558572 { /* Controls */ }
@@ -678,6 +692,33 @@ export default function UniquePathsVisualizer() {
678692 < InstructionsCard />
679693 </ div >
680694 </ div >
695+ < footer
696+ className = "text-center mt-12 text-sm text-gray-500
697+ flex flex-col md:flex-row items-center justify-center gap-2"
698+ >
699+ < a
700+ href = "https://github.com/GreenMarioh/"
701+ target = "_blank"
702+ rel = "noopener noreferrer"
703+ className = "flex items-center gap-1 underline hover:text-gray-300
704+ transition-colors duration-200"
705+ >
706+ 🐙 < span > Created by @GreenMarioh</ span >
707+ </ a >
708+
709+ < a
710+ href = "https://github.com/GreenMarioh/unique-paths-visualizer/"
711+ target = "_blank"
712+ rel = "noopener noreferrer"
713+ className = "flex items-center gap-1 underline hover:text-gray-300
714+ transition-colors duration-200"
715+ >
716+ 🥀 < span > Source Code</ span >
717+ </ a >
718+ </ footer >
719+
720+
681721 </ div >
722+
682723 ) ;
683724}
0 commit comments