-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpage.jsx
More file actions
executable file
·121 lines (111 loc) · 3.86 KB
/
Copy pathpage.jsx
File metadata and controls
executable file
·121 lines (111 loc) · 3.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
import Animation from "@/app/visualizer/queue/operations/enqueue-dequeue/animation";
import Navbar from "@/app/components/navbarinner";
import Breadcrumbs from "@/app/components/ui/Breadcrumbs";
import ArticleActions from "@/app/components/ui/ArticleActions";
import Content from "@/app/visualizer/queue/operations/enqueue-dequeue/content";
import Quiz from "@/app/visualizer/queue/operations/enqueue-dequeue/quiz";
import Code from "@/app/visualizer/queue/operations/enqueue-dequeue/codeBlock";
import ModuleCard from "@/app/components/ui/ModuleCard";
import { MODULE_MAPS } from "@/lib/modulesMap";
import ExploreOther from "@/app/components/ui/exploreOther";
import Footer from "@/app/components/footer";
import BackToTop from "@/app/components/ui/backtotop";
export const metadata = {
title:
"Enqueue and Dequeue Operations in Queue | Learn Queue with JS, C, Python, Java Code",
description:
"Visualize and understand the Enqueue and Dequeue operations in a Queue with real-time animations and code examples in JavaScript, C, Python, and Java. Perfect for DSA beginners and interview preparation.",
keywords: [
"Enqueue Operation",
"Dequeue Operation",
"Queue Operations",
"Queue DSA",
"Queue Enqueue Dequeue",
"Learn Queue",
"Queue Visualization",
"Interactive DSA Tools",
"Queue Data Structure",
"Queue Code Examples",
"Enqueue Dequeue in JavaScript",
"Enqueue Dequeue in C",
"Enqueue Dequeue in Python",
"Enqueue Dequeue in Java",
],
robots: "index, follow",
openGraph: {
images: [
{
url: "/og/queue/enqueueDequeue.png",
width: 1200,
height: 630,
alt: "Enqueue Dequeue Algorithm Visualization",
},
],
},
};
export default function Page() {
const paths = [
{ name: "Home", href: "/" },
{ name: "Visualizer", href: "/visualizer" },
{ name: "Enqueue-Dequeue", href: "" },
];
return (
<>
<div>
<Navbar />
</div>
<div className="py-20 bg-gray-100 dark:bg-neutral-900 text-gray-800 dark:text-gray-200">
<section className="px-6 md:px-12">
<div className="mt-10 sm:mt-10 mb-4">
<Breadcrumbs paths={paths} />
</div>
<div className="flex items-center flex-col">
<div className="flex">
<p className="uppercase tracking-wide bg-green-500 dark:text-black px-4 py-1 mb-2 rounded-full">
Queue
</p>
</div>
<h1 className="text-4xl md:text-4xl font-bold text-center text-gray-900 dark:text-white mb-0">
Enqueue & Dequeue
</h1>
<ArticleActions />
</div>
<div className="bg-black border border-none dark:bg-gray-600 w-100 h-[2px] rounded-xl my-10"></div>
<Content />
</section>
<section className="px-6">
<Animation />
</section>
<section className="px-6">
<p className="text-lg text-center text-gray-600 dark:text-gray-400 mb-8">
Test Your Knowledge before moving forward!
</p>
<Quiz />
</section>
<section className="px-6">
<Code />
</section>
<section className="px-6 md:px-12 my-12">
<ModuleCard
moduleId={MODULE_MAPS.enqueueDequeue}
title="Enqueue Dequeue"
description="Mark queue : enqueue & dequeue as done and view it on your dashboard"
initialDone={false}
/>
</section>
<section className="px-6">
<ExploreOther
title="Explore Other Operations"
links={[
{ text: "Peek Front", url: "./peek-front" },
{ text: "Is Empty", url: "./isempty" },
{ text: "Is Full", url: "./isfull" },
]}
/>
</section>
</div>
<BackToTop />
<Footer />
</>
);
}