- isFull() →
false
+
+
+ {/* Practical Example */}
+
+
+
+ Practical Example
+
+
+
+ Consider a stack with maximum capacity of 3 elements:
+
+
+
+
Stack: [ ]
+
+ isFull() →{" "}
+ false
+
+
+
+
Stack: [5, 3]
+
+ isFull() →{" "}
+ false
+
+
+
+
Stack: [7, 3, 5]
+
+ isFull() →{" "}
+
+ true
+
+
+
-
-
Stack: [7, 3, 5]
-
- isFull() →
true
+
+
+ {/* Common Use Cases */}
+
+
+
+ Common Use Cases
+
+
+
+ {useCase.map((item, index) => (
+ -
+ {item.points}
+
+ ))}
+
+
+
+
+ {/* Additional Info */}
+
-
-
-
- {/* Common Use Cases */}
-
-
-
- Common Use Cases
-
-
-
- {useCase.map((item, index) => (
- -
- {item.points}
-
- ))}
-
-
-
-
- {/* Additional Info */}
-
-
-
+
+
+
);
};
-export default Content;
+export default content;
diff --git a/app/visualizer/stack/isfull/page.jsx b/app/visualizer/stack/isfull/page.jsx
index 0993c10..f58d8ce 100644
--- a/app/visualizer/stack/isfull/page.jsx
+++ b/app/visualizer/stack/isfull/page.jsx
@@ -1,31 +1,119 @@
import Animation from "@/app/visualizer/stack/isfull/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/stack/isfull/content";
+import Quiz from "@/app/visualizer/stack/isfull/quiz";
+import Code from "@/app/visualizer/stack/isfull/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 BackToTopButton from "@/app/components/ui/backtotop";
export const metadata = {
- title: 'Stack Is Full Visualizer | Check Full Condition in Stack with Code in JS, C, Python, Java',
- description: 'Understand how to check if a Stack is full using interactive animations and code examples in JavaScript, C, Python, and Java. A simple guide for beginners and DSA interview preparation.',
+ title:
+ "Stack Is Full Visualizer | Check Full Condition in Stack with Code in JS, C, Python, Java",
+ description:
+ "Understand how to check if a Stack is full using interactive animations and code examples in JavaScript, C, Python, and Java. A simple guide for beginners and DSA interview preparation.",
keywords: [
- 'Stack Is Full',
- 'Is Full Operation Stack',
- 'Stack Full Condition',
- 'Stack Capacity Check',
- 'DSA Stack Animation',
- 'Learn Stack Operations',
- 'Stack in JavaScript',
- 'Stack in C',
- 'Stack in Python',
- 'Stack in Java',
- 'Stack Code Examples',
- 'Stack Overflow Condition',
+ "Stack Is Full",
+ "Is Full Operation Stack",
+ "Stack Full Condition",
+ "Stack Capacity Check",
+ "DSA Stack Animation",
+ "Learn Stack Operations",
+ "Stack in JavaScript",
+ "Stack in C",
+ "Stack in Python",
+ "Stack in Java",
+ "Stack Code Examples",
+ "Stack Overflow Condition",
],
robots: "index, follow",
+ openGraph: {
+ images: [
+ {
+ url: "/og/stack/isFull.png",
+ width: 1200,
+ height: 630,
+ alt: "Stack isFull Visualization",
+ },
+ ],
+ },
};
export default function Page() {
- return(
+ const paths = [
+ { name: "Home", href: "/" },
+ { name: "Visualizer", href: "/visualizer" },
+ { name: "Stack : IsFull", href: "" },
+ ];
+
+ return (
<>
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ IsFull Operation
+
+
+
+
+
+
+
+
+
+
+
+ Test Your Knowledge before moving forward!
+
+
+
+
+
+
+
+
+
+
+
+
+
>
);
-};
\ No newline at end of file
+}
diff --git a/app/visualizer/stack/isfull/quiz.jsx b/app/visualizer/stack/isfull/quiz.jsx
index 0e8d7fe..92133b5 100644
--- a/app/visualizer/stack/isfull/quiz.jsx
+++ b/app/visualizer/stack/isfull/quiz.jsx
@@ -1,3 +1,4 @@
+"use client";
import React, { useState } from 'react';
import { FaCheck, FaTimes, FaArrowRight, FaArrowLeft, FaInfoCircle, FaRedo, FaTrophy, FaStar, FaAward } from 'react-icons/fa';
import { motion, AnimatePresence } from 'framer-motion';
@@ -129,30 +130,24 @@ const StackQuiz = () => {
const calculateWeakAreas = () => {
const weakAreas = [];
if (answers[0] !== questions[0].correctAnswer) {
- weakAreas.push("understanding the basic principle of Selection Sort");
+ weakAreas.push("understanding the purpose of 'isFull'");
}
if (answers[1] !== questions[1].correctAnswer) {
- weakAreas.push("time complexity analysis");
+ weakAreas.push("knowing which stack implementations use 'isFull'");
}
if (answers[2] !== questions[2].correctAnswer) {
- weakAreas.push("counting swaps in Selection Sort");
+ weakAreas.push("behavior of isFull in dynamic stacks");
}
if (answers[3] !== questions[3].correctAnswer) {
- weakAreas.push("comparison with other simple sorts");
+ weakAreas.push("practical scenarios of stack capacity checks");
}
if (answers[4] !== questions[4].correctAnswer) {
- weakAreas.push("space complexity");
+ weakAreas.push("importance of preventing overflow before push");
}
- if (answers[5] !== questions[5].correctAnswer) {
- weakAreas.push("stability characteristics");
- }
- if (answers[6] !== questions[6].correctAnswer) {
- weakAreas.push("practical applications");
- }
-
- return weakAreas.length > 0
- ? `Focus on improving: ${weakAreas.join(', ')}. Review the corresponding sections above.`
- : "Perfect! You've mastered all Selection Sort concepts!";
+
+ return weakAreas.length > 0
+ ? `Focus on improving: ${weakAreas.join(", ")}. Review the corresponding sections above.`
+ : "Perfect! You've mastered all 'isFull' stack concepts!";
};
const startQuiz = () => {
@@ -169,7 +164,7 @@ const StackQuiz = () => {
};
return (
-
+
{showIntro ? (
{
className="text-center"
>
-
Stack Quiz Challenge
-
+
How it works:
diff --git a/lib/modulesMap.js b/lib/modulesMap.js
index 07494ef..f2eb3a7 100644
--- a/lib/modulesMap.js
+++ b/lib/modulesMap.js
@@ -9,4 +9,5 @@ export const MODULE_MAPS = {
pushPop : "48138388-914b-4f84-8468-683175ce1a1e",
peek : "fd95f8af-fb22-413f-9080-ebb558b53e70",
isEmpty : "05ecbddd-e3d4-4fa1-aa45-71accac97d79",
+ isFull : "54301ec9-0586-48f0-a6db-18a41adeb856",
}
\ No newline at end of file
diff --git a/public/og/stack/isFull.png b/public/og/stack/isFull.png
new file mode 100644
index 0000000..f0c8368
Binary files /dev/null and b/public/og/stack/isFull.png differ