diff --git a/docusaurus.config.js b/docusaurus.config.js index 2b49d96cb..60a2b22cf 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -1,5 +1,6 @@ -import { themes as prismThemes } from "prism-react-renderer"; import { default as npm2yarn } from "@docusaurus/remark-plugin-npm2yarn"; +import { themes as prismThemes } from "prism-react-renderer"; + const remarkMath = require("remark-math"); const rehypeKatex = require("rehype-katex"); @@ -93,11 +94,21 @@ const config = { { name: "twitter:creator", content: "@CodesWithAjay" }, { property: "og:type", content: "website" }, { property: "og:site_name", content: "CodeHarborHub" }, - { property: "og:title", content: "CodeHarborHub - A place to learn and grow" }, - { property: "og:description", content: "CodeHarborHub is a place to learn and grow. We provide accessible and comprehensive educational resources to learners of all levels, from beginners to advanced professionals."}, - { property: "og:image", content: "https://codeharborhub.github.io/img/nav-logo.jpg" }, + { + property: "og:title", + content: "CodeHarborHub - A place to learn and grow", + }, + { + property: "og:description", + content: + "CodeHarborHub is a place to learn and grow. We provide accessible and comprehensive educational resources to learners of all levels, from beginners to advanced professionals.", + }, + { + property: "og:image", + content: "https://codeharborhub.github.io/img/nav-logo.jpg", + }, { property: "og:url", content: "https://codeharborhub.github.io" }, - { name: "robots", content: "index, follow" }, + { name: "robots", content: "index, follow" }, ], algolia: { @@ -127,13 +138,13 @@ const config = { HTML CSS JavaScript - React - TypeScript - Python - Java + React + TypeScript + Python + Java Tailwind - CPP - Next + CPP + Next `, }, @@ -148,7 +159,7 @@ const config = { value: ``, }, @@ -363,7 +374,7 @@ const config = { { label: "YouTube", href: "https://www.youtube.com/", - icon: 'faYoutube', + icon: "faYoutube", }, { label: "Discord", diff --git a/dsa-solutions/gfg-solutions/Basic/0093.md b/dsa-solutions/gfg-solutions/Basic/0093.md index 0245d5b13..e3400d4d5 100644 --- a/dsa-solutions/gfg-solutions/Basic/0093.md +++ b/dsa-solutions/gfg-solutions/Basic/0093.md @@ -14,7 +14,9 @@ description: "This document covers methods to replace all occurrences of the dig Given a number N. The task is to complete the function **convertFive()** which replaces all zeros in the number with 5 and returns the number. ### Examples: + **Example 1:** + ``` Input 2 @@ -49,7 +51,9 @@ Since this is a functional problem you don't have to worry about input, you just - $1 <= N <= 10^4$ ## Solution + ### Python + ```python def convertFive(self,n): num_str = str(n) @@ -63,6 +67,7 @@ def convertFive(self,n): ``` ### Java + ```java public static int convertFive(int n){ String numStr = String.valueOf(n); @@ -71,7 +76,7 @@ public static int convertFive(int n){ char currentChar = numStr.charAt(i); if (currentChar == '0') { result.append('5'); - } + } else { result.append(currentChar); } @@ -82,6 +87,7 @@ public static int convertFive(int n){ ``` ### C++ + ```cpp int convertFive(int n) { string numStr = to_string(n); @@ -96,6 +102,7 @@ int convertFive(int n) { ``` ### C + ```c int convertFive(int n) { int result = 0; @@ -104,7 +111,7 @@ int convertFive(int n) { int digit = n % 10; if (digit == 0) { result += 5 * position; - } + } else { result += digit * position; } diff --git a/src/components/Chatbot/index.tsx b/src/components/Chatbot/index.tsx index 6dcb1f1d3..c96290b8a 100644 --- a/src/components/Chatbot/index.tsx +++ b/src/components/Chatbot/index.tsx @@ -26,4 +26,4 @@ const Chatbot = () => { ); }; -export default Chatbot; \ No newline at end of file +export default Chatbot; diff --git a/src/components/Chatbot/styles.module.css b/src/components/Chatbot/styles.module.css index 119d21c35..cc03ba9c4 100644 --- a/src/components/Chatbot/styles.module.css +++ b/src/components/Chatbot/styles.module.css @@ -217,4 +217,4 @@ .bpw-floating-button:hover { background-color: var(--ifm-color-primary); box-shadow: none !important; -} \ No newline at end of file +} diff --git a/src/css/custom.css b/src/css/custom.css index fa8a75ec0..aa43f0b12 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -367,4 +367,4 @@ th { .row .col .card { margin-top: 10px; -} \ No newline at end of file +} diff --git a/src/css/markdown.module.css b/src/css/markdown.module.css index 70757176b..0f93ee117 100644 --- a/src/css/markdown.module.css +++ b/src/css/markdown.module.css @@ -35,4 +35,4 @@ .colorRed dl > dd { margin: 0; color: #e6a377; -} \ No newline at end of file +} diff --git a/src/pages/me.md b/src/pages/me.md index 0b2499e8f..01411bb58 100644 --- a/src/pages/me.md +++ b/src/pages/me.md @@ -4,7 +4,6 @@ description: In this page, I will introduce myself. hide_table_of_contents: true --- - import Chatbot from "../components/Chatbot"; # Introduction (परिचयः) 🙏 @@ -118,4 +117,4 @@ import Chatbot from "../components/Chatbot"; - \ No newline at end of file +