-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpage.jsx
More file actions
executable file
·118 lines (108 loc) · 3.69 KB
/
Copy pathpage.jsx
File metadata and controls
executable file
·118 lines (108 loc) · 3.69 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
import Animation from "@/app/visualizer/queue/operations/isempty/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/isempty/content";
import Quiz from "@/app/visualizer/queue/operations/isempty/quiz";
import Code from "@/app/visualizer/queue/operations/isempty/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: "Queue Is Empty Operation | Learn with JS, C, Python, Java Code",
description:
"Learn how to check if a Queue is empty using interactive visualizations and complete code examples in JavaScript, C, Python, and Java. Ideal for DSA beginners and interview prep.",
keywords: [
"Queue Is Empty",
"Is Empty Operation Queue",
"Queue Empty Condition",
"Queue Code in JavaScript",
"Queue Code in C",
"Queue Code in Python",
"Queue Code in Java",
"DSA Queue Check",
"Queue Operations",
"Visualize Queue",
"Learn Queue DSA",
"Queue Data Structure",
],
robots: "index, follow",
openGraph: {
images: [
{
url: "/og/queue/isEmpty.png",
width: 1200,
height: 630,
alt: "isEmpty Algorithm Visualization",
},
],
},
};
export default function Page() {
const paths = [
{ name: "Home", href: "/" },
{ name: "Visualizer", href: "/visualizer" },
{ name: "Queue : IsEmpty", 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">
IsEmpty
</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.queueIsEmpty}
title="Queue : IsEmpty"
description="Mark queue : isEmpty 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: "Enqueue & Dequeue", url: "./enqueue-dequeue" },
{ text: "Is Full", url: "./isfull" },
]}
/>
</section>
</div>
<BackToTop />
<Footer />
</>
);
}