en
Feedback
CᴏᴅɪɴɢNᴇʀᴅ 💸🐾

CᴏᴅɪɴɢNᴇʀᴅ 💸🐾

Open in Telegram

༗ हरे कृष्णा ༗ "Lost in my own cosmos 💫 | Coding Need Patience 🥀🐾" ❝Face the failure, Until the Failure fails to face you.❞ — Dreamer » ChikuX69.netlify.app « DM ? " @ChikuXBot " : 404;

Show more
376
Subscribers
No data24 hours
-57 days
-48430 days
Posts Archive
\n\n\n\n• For Full Code Here\n• Demo Website is Here\n\n@NotCoding | @CodesSnippet\nHappy Coding 👨‍💻","datePublished":"2024-12-12T15:04:32Z","dateModified":"2024-12-12T15:04:32Z","author":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"publisher":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":127},{"@type":"InteractionCounter","interactionType":"https://schema.org/LikeAction","userInteractionCount":7},{"@type":"InteractionCounter","interactionType":"https://schema.org/ShareAction","userInteractionCount":7}]}},{"@type":"ListItem","position":6,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/en/channels/2019782310-notcoding/posts/151","url":"https://telemetr.io/en/channels/2019782310-notcoding/posts/151","mainEntityOfPage":"https://telemetr.io/en/channels/2019782310-notcoding/posts/151","headline":"Day 13👾: You are given an integer array arr[]. Your task is to find the smallest positive number missing from…","articleBody":"Day 13👾:\nYou are given an integer array arr[]. Your task is to find the smallest positive number missing from the array.\n\nNote: Positive number starts from 1. The array can have negative integers too.","datePublished":"2024-12-12T13:31:15Z","dateModified":"2024-12-12T13:31:15Z","author":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"publisher":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":36},{"@type":"InteractionCounter","interactionType":"https://schema.org/LikeAction","userInteractionCount":6}]}},{"@type":"ListItem","position":7,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/en/channels/2019782310-notcoding/posts/150","url":"https://telemetr.io/en/channels/2019782310-notcoding/posts/150","mainEntityOfPage":"https://telemetr.io/en/channels/2019782310-notcoding/posts/150","headline":"° Setup and install Tailwindcss ° → To setup and install Tailwindcss in your local machine (pc), you need to…","articleBody":"° Setup and install Tailwindcss °\n\n→ To setup and install Tailwindcss in your local machine (pc), you need to follow some steps!!\n\n→ At first to install Tailwindcss you need nodejs installed in your pc, let's intsall nodejs first..\n › To install nodejs visit official website of nodejs, download latest version and install it simply by running that executable file. \n\n › If you have Mac or linux then go to Official website and choose nodejs for your machine.\n\n > Verify installation by running command: node -v\n\n→ Now node is installed in your pc now we will install Tailwindcss, follow the steps\n1. Go to folder where you want to make your project. (You can also install it directly by terminal.)\nExample: \ncd D:/code/ \n\n2. Right-click and open in terminal or open that folder in vs code and open terminal there.\n\n3. Install Tailwindcss.\nnpm install -D tailwindcss\n\n4. Initalize Tailwind for your project (run this command in that directory where you want to setup and develop your project).\nnpx tailwindcss init\n\n5. You will see tailwind.config.js named file is created, you need to edit it. Open that file you will see some code (keep it for now let's create some folder first).\n\n6. Create 2 folders named dist and src, in src folder create a file named input.css and write this code in this file.\n@tailwind base;\n@tailwind components;\n@tailwind utilities;\n\n7. And in dist folder your all project file will placed make their index.html and style.css.\n8. Now edit that tailwind.config.js mentioned in step 5. Edit Content property in this file.\n/** @type {import('tailwindcss').Config} */\nmodule.exports = {\n content: [\"./dist/*.html\"],\n theme: {\n extend: {},\n },\n plugins: [],\n}\n\n9. Now run this code in terminal (This will work as live server for tailwindcss).\nnpx tailwindcss -i ./src/input.css -o ./dist/style.css --watch\n\n10. Now Tailwindcss installed and now u can write your html code. You don't need to edit style.css just write code in html file. For more visit official website of tailwindcss and read docs.\n\n@NotCoding | @CodesSnippet\nHappy Coding 👨‍💻","datePublished":"2024-12-12T06:22:27Z","dateModified":"2024-12-12T06:22:27Z","author":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"publisher":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":115},{"@type":"InteractionCounter","interactionType":"https://schema.org/LikeAction","userInteractionCount":6},{"@type":"InteractionCounter","interactionType":"https://schema.org/ShareAction","userInteractionCount":6}]}},{"@type":"ListItem","position":8,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/en/channels/2019782310-notcoding/posts/149","url":"https://telemetr.io/en/channels/2019782310-notcoding/posts/149","mainEntityOfPage":"https://telemetr.io/en/channels/2019782310-notcoding/posts/149","headline":"Day 12👾: Given an array of integers arr[] in a circular fashion. Find the maximum subarray sum that we can ge…","articleBody":"Day 12👾:\nGiven an array of integers arr[] in a circular fashion. Find the maximum subarray sum that we can get if we assume the array to be circular.","datePublished":"2024-12-11T13:30:41Z","dateModified":"2024-12-11T13:30:41Z","author":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"publisher":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":35},{"@type":"InteractionCounter","interactionType":"https://schema.org/LikeAction","userInteractionCount":6}]}},{"@type":"ListItem","position":9,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/en/channels/2019782310-notcoding/posts/148","url":"https://telemetr.io/en/channels/2019782310-notcoding/posts/148","mainEntityOfPage":"https://telemetr.io/en/channels/2019782310-notcoding/posts/148","headline":"Day 11👾: Given an array arr[] that contains positive and negative integers (may contain 0 as well). Find the…","articleBody":"Day 11👾:\nGiven an array arr[] that contains positive and negative integers (may contain 0 as well). Find the maximum product that we can get in a subarray of arr[].\n\nNote: It is guaranteed that the output fits in a 32-bit integer.","datePublished":"2024-12-10T13:31:39Z","dateModified":"2024-12-10T13:31:39Z","author":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"publisher":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":41},{"@type":"InteractionCounter","interactionType":"https://schema.org/LikeAction","userInteractionCount":6}]}},{"@type":"ListItem","position":10,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/en/channels/2019782310-notcoding/posts/147","url":"https://telemetr.io/en/channels/2019782310-notcoding/posts/147","mainEntityOfPage":"https://telemetr.io/en/channels/2019782310-notcoding/posts/147","headline":"Day 10👾: Given an array arr[], the task is to find the subarray that has the maximum sum and return its sum.","articleBody":"Day 10👾:\nGiven an array arr[], the task is to find the subarray that has the maximum sum and return its sum.","datePublished":"2024-12-09T13:32:12Z","dateModified":"2024-12-09T13:32:12Z","author":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"publisher":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":40},{"@type":"InteractionCounter","interactionType":"https://schema.org/LikeAction","userInteractionCount":5}]}},{"@type":"ListItem","position":11,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/en/channels/2019782310-notcoding/posts/146","url":"https://telemetr.io/en/channels/2019782310-notcoding/posts/146","mainEntityOfPage":"https://telemetr.io/en/channels/2019782310-notcoding/posts/146","headline":"Day 09👾: Given the heights of n towers and a positive integer k, increase or decrease the height of all tower…","articleBody":"Day 09👾:\nGiven the heights of n towers and a positive integer k, increase or decrease the height of all towers by k (only once). After modifications, the task is to find the minimum difference between the heights of the tallest and the shortest tower.","datePublished":"2024-12-08T13:31:02Z","dateModified":"2024-12-08T13:31:02Z","author":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"publisher":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":40},{"@type":"InteractionCounter","interactionType":"https://schema.org/LikeAction","userInteractionCount":6}]}},{"@type":"ListItem","position":12,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/en/channels/2019782310-notcoding/posts/145","url":"https://telemetr.io/en/channels/2019782310-notcoding/posts/145","mainEntityOfPage":"https://telemetr.io/en/channels/2019782310-notcoding/posts/145","headline":"Sample image of captcha generator code","articleBody":"Sample image of captcha generator code","datePublished":"2024-12-08T12:33:19Z","dateModified":"2024-12-08T12:33:19Z","author":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"publisher":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":46},{"@type":"InteractionCounter","interactionType":"https://schema.org/LikeAction","userInteractionCount":5},{"@type":"InteractionCounter","interactionType":"https://schema.org/ShareAction","userInteractionCount":1}]}},{"@type":"ListItem","position":13,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/en/channels/2019782310-notcoding/posts/144","url":"https://telemetr.io/en/channels/2019782310-notcoding/posts/144","mainEntityOfPage":"https://telemetr.io/en/channels/2019782310-notcoding/posts/144","headline":"» Image Captcha Generator 👨‍💻 Let's make a image captcha generator using python. You can use it in your websi…","articleBody":"» Image Captcha Generator 👨‍💻\n\nLet's make a image captcha generator using python.\nYou can use it in your website or in telegram bots for user verifications, it generate random text in image so that bots can be recognize..\n\n1. At first create virtual environment for your project (This is more convenient when you building a project, it provides an isolated space from your default local machine's python interpreter.\n\nIf you don't know how to make virtual environment, Follow This Post \n\n2. Now let's install libraries that we need\npip install captcha pillow\n\n3. Let't Write code for our image captcha\nfrom captcha.image import ImageCaptcha\nfrom io import BytesIO\nfrom PIL import Image\nimport string, random\n\ndef random_text():\n text = string.ascii_letters + string.digits\n f_text = ''\n for i in range(6):\n f_text += random.choice(text)\n return f_text\n\ndef image_captcha(text: str) -> None:\n captcha: ImageCaptcha = ImageCaptcha(width=400, height=200, font_sizes=(50, 70, 100))\n\n data: BytesIO = captcha.generate(text)\n image: Image = Image.open(data)\n image.show('Temp')\n\n\nif __name__ == '__main__':\n image_captcha(random_text())\n\nRun Code and test yourself\n\n@NotCoding | @CodesSnippet \nHappy Coding 👨‍💻","datePublished":"2024-12-08T07:24:31Z","dateModified":"2024-12-08T07:24:31Z","author":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"publisher":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":46},{"@type":"InteractionCounter","interactionType":"https://schema.org/LikeAction","userInteractionCount":6},{"@type":"InteractionCounter","interactionType":"https://schema.org/ShareAction","userInteractionCount":6}]}},{"@type":"ListItem","position":14,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/en/channels/2019782310-notcoding/posts/143","url":"https://telemetr.io/en/channels/2019782310-notcoding/posts/143","mainEntityOfPage":"https://telemetr.io/en/channels/2019782310-notcoding/posts/143","headline":"Day 08👾: Given an array prices[] of length n, representing the prices of the stocks on different days. The ta…","articleBody":"Day 08👾:\nGiven an array prices[] of length n, representing the prices of the stocks on different days. The task is to find the maximum profit possible by buying and selling the stocks on different days when at most one transaction is allowed. Here one transaction means 1 buy + 1 Sell. If it is not possible to make a profit then return 0.\n\nNote: Stock must be bought before being sold.","datePublished":"2024-12-07T13:31:27Z","dateModified":"2024-12-07T13:31:27Z","author":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"publisher":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":35},{"@type":"InteractionCounter","interactionType":"https://schema.org/LikeAction","userInteractionCount":6}]}},{"@type":"ListItem","position":15,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/en/channels/2019782310-notcoding/posts/142","url":"https://telemetr.io/en/channels/2019782310-notcoding/posts/142","mainEntityOfPage":"https://telemetr.io/en/channels/2019782310-notcoding/posts/142","headline":"Day 07 👾: Q. Stock Buy and Sell - Multiple Transaction Allowed (Hard) Given an array prices[] of size n denot…","articleBody":"Day 07 👾:\nQ. Stock Buy and Sell - Multiple Transaction Allowed (Hard)\n\nGiven an array prices[] of size n denoting the cost of stock on each day, the task is to find the maximum total profit if we can buy and sell the stocks any number of times.\n\nNote: We can only sell a stock which we have bought earlier and we cannot hold multiple stocks on any day.","datePublished":"2024-12-06T13:31:18Z","dateModified":"2024-12-06T13:31:18Z","author":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"publisher":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":39},{"@type":"InteractionCounter","interactionType":"https://schema.org/LikeAction","userInteractionCount":6}]}},{"@type":"ListItem","position":16,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/en/channels/2019782310-notcoding/posts/141","url":"https://telemetr.io/en/channels/2019782310-notcoding/posts/141","mainEntityOfPage":"https://telemetr.io/en/channels/2019782310-notcoding/posts/141","headline":"Creating Virtual Environment for Python » Download Python First you need python installed in your local machi…","articleBody":"Creating Virtual Environment for Python\n\n» Download Python\nFirst you need python installed in your local machine to create virtual environment.\nDownload Python from Here\n\n\n» Steps to create '.env' folder (virtual environment for python)\n1. Navigate to the folder where you want to make your project\nExample: \ncd D:/code/\n\n2. Open terminal (local terminal, command prompt, or vs code terminal) in that folder\n\n3. Now, use these commands\npython --version # Type this and hit enter to verify the python version\n\n\n# Now use these commands\npython -m venv .env\n\n4. Your virtual environment is created in that folder, now activate this virtual environment using this command.\n\nCommand for 'Command Prompt':\n.\\env\\Scripts\\activate\n\nCommand for 'Powershell':\n.\\env\\Scripts\\Activate.ps1\n\nCommand for Git Bash or WSL:\nsource \\.env\\bin\\activate\n\nIf Powershell gives you error like File cannot be loaded because running scripts is disabled then use this command!\nSet-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass\n\n5. Congratulations🎊 Your virtual environment activated now make your project\n\n\nHappy Coding 👨‍💻","datePublished":"2024-12-06T07:19:54Z","dateModified":"2024-12-06T07:19:54Z","author":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"publisher":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":137},{"@type":"InteractionCounter","interactionType":"https://schema.org/LikeAction","userInteractionCount":6},{"@type":"InteractionCounter","interactionType":"https://schema.org/ShareAction","userInteractionCount":10}]}},{"@type":"ListItem","position":17,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/en/channels/2019782310-notcoding/posts/140","url":"https://telemetr.io/en/channels/2019782310-notcoding/posts/140","mainEntityOfPage":"https://telemetr.io/en/channels/2019782310-notcoding/posts/140","headline":"Day 06 👾: Given an array arr[] consisting of n integers, the task is to find all the array elements which occ…","articleBody":"Day 06 👾:\nGiven an array arr[] consisting of n integers, the task is to find all the array elements which occurs more than floor(n/3) times.\n\nNote: The returned array of majority elements should be sorted.","datePublished":"2024-12-05T13:30:51Z","dateModified":"2024-12-05T13:30:51Z","author":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"publisher":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":37},{"@type":"InteractionCounter","interactionType":"https://schema.org/LikeAction","userInteractionCount":6}]}},{"@type":"ListItem","position":18,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/en/channels/2019782310-notcoding/posts/139","url":"https://telemetr.io/en/channels/2019782310-notcoding/posts/139","mainEntityOfPage":"https://telemetr.io/en/channels/2019782310-notcoding/posts/139","headline":"F-strings usage and formats in Python! Code Examples: 1. Basic F-string: name = \"Chiku\" age = 21 print(f\"Name…","articleBody":"F-strings usage and formats in Python!\n\nCode Examples:\n\n1. Basic F-string:\nname = \"Chiku\"\nage = 21\nprint(f\"Name: {name}, Age: {age}\")\n# Use code and learn.\n\n\n2. Debugging:\nvar = 100\nprint(f\"var={var}\")\nprint(f\"{var = }\")\n# Use code and learn.\n\n\n3. Rounding:\ndecimal_number = 1234.5678\npercent = 0.5678\nprint(f\"Decimal: {decimal_number:.2f}\")\nprint(f\"Percent: {percent:.2%}\")\n# Use code and learn.\n\n\n4. Thousands separators:\nbig_number = 1000000\nprint(f\"Big number: {big_number:,}\")\n# Use code and learn.\n\n\n5. Date and time formatting:\nimport datetime\nnow = datetime.datetime.now()\nprint(f\"Date: {now:%x}\")\nprint(f\"Date and time: {now:%c}\")\nprint(f\"Time: {now:%H:%M:%S}\")\n# Use code and learn.\n\n\n6. Raw strings:\npath = fr\"C:\\Users\\{user}\\Documents\"\n# Use code and learn.\n# Do not use in big project, use this format for fun only\n\n\n7. Alignment:\ntext = \"Chiku\"\nprint(f\"{text:>20}\") # Right align\nprint(f\"{text:^20}\") # Center align\nprint(f\"{text:<20}\") # Left align\n# Use code and learn.\n\n\n8. Custom F-string class:\nclass Text:\n def __init__(self, text):\n self.text = text\n\n def __format__(self, format_spec):\n if format_spec == \"upper\":\n return self.text.upper()\n elif format_spec == \"lower\":\n return self.text.lower()\n elif format_spec == \"count\":\n return str(len(self.text))\n else:\n raise ValueError(f\"Invalid format specifier: {format_spec}\")\n\ntext = Text(\"Chiku\")\nprint(f\"{text:upper}\")\nprint(f\"{text:lower}\")\nprint(f\"{text:count}\")\n# Use code and learn.","datePublished":"2024-12-05T12:42:24Z","dateModified":"2024-12-05T12:42:24Z","author":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"publisher":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":126},{"@type":"InteractionCounter","interactionType":"https://schema.org/LikeAction","userInteractionCount":6},{"@type":"InteractionCounter","interactionType":"https://schema.org/ShareAction","userInteractionCount":1}]}},{"@type":"ListItem","position":19,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/en/channels/2019782310-notcoding/posts/137","url":"https://telemetr.io/en/channels/2019782310-notcoding/posts/137","mainEntityOfPage":"https://telemetr.io/en/channels/2019782310-notcoding/posts/137","headline":"Day 05 👾: Given an array arr[] of size n, the task is to print the lexicographically next greater permutation…","articleBody":"Day 05 👾:\nGiven an array arr[] of size n, the task is to print the lexicographically next greater permutation of the given array. If there does not exist any greater permutation, then find the lexicographically smallest permutation of the given array.\n\nLet us understand the problem better by writing all permutations of [1, 2, 4] in lexicographical order\n\n[1, 2, 4], [1, 4, 2], [2, 1, 4], [2, 4, 1], [4, 1, 2] and [4, 2, 1]\n\nIf we give any of the above (except the last) as input, we need to find the next one in sequence. If we give last as input, we need to return the first one.","datePublished":"2024-12-04T13:31:19Z","dateModified":"2024-12-04T13:31:19Z","author":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"publisher":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":28},{"@type":"InteractionCounter","interactionType":"https://schema.org/LikeAction","userInteractionCount":5}]}},{"@type":"ListItem","position":20,"item":{"@type":"SocialMediaPosting","@id":"https://telemetr.io/en/channels/2019782310-notcoding/posts/135","url":"https://telemetr.io/en/channels/2019782310-notcoding/posts/135","mainEntityOfPage":"https://telemetr.io/en/channels/2019782310-notcoding/posts/135","headline":"Day 04 👾: Given an array of integers arr[] of size n, the task is to rotate the array elements to the left by…","articleBody":"Day 04 👾:\nGiven an array of integers arr[] of size n, the task is to rotate the array elements to the left by d positions.","datePublished":"2024-12-03T01:32:08Z","dateModified":"2024-12-03T01:32:08Z","author":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"publisher":{"@type":"Organization","name":"CᴏᴅɪɴɢNᴇʀᴅ 💸🐾","url":"https://telemetr.io/en/channels/2019782310-notcoding","image":"https://img.tlmtr.io/c/2cGNE2/5357316951631848862?ty=x"},"commentCount":0,"interactionStatistic":[{"@type":"InteractionCounter","interactionType":"https://schema.org/ViewAction","userInteractionCount":33},{"@type":"InteractionCounter","interactionType":"https://schema.org/LikeAction","userInteractionCount":5}]}}]}
Day 16👾: Given two strings s1 and s2 consisting of lowercase characters. The task is to check whether two given strings are
Day 16👾:
Given two strings s1 and s2 consisting of lowercase characters. The task is to check whether two given strings are an anagram of each other or not. An anagram of a string is another string that contains the same characters, only the order of characters can be different. For example, "act" and "tac" are an anagram of each other. Strings s1 and s2 can only contain lowercase alphabets. Note: You can assume both the strings s1 & s2 are non-empty.

° Telegram Formatting °
Telegram supports text formatting in messages using Markdown or HTML. This allows you to style your messages with bold, italic, links, inline code, and more.
› Formatting in HTML
1. Bold
<b>Bold Text</b>
<strong>bold</strong>
2. Italic
<i>Italic Text</i>
<em>italic</em>
3. Underline
<u>Underline Text</u>
4. Monospace
<code>Monospace Text<code>
5. Spoiler
<spoiler>Spoiler Text</spoiler>
6. Strikethrough
<s>Strikethrough Text</s>
<strike>strike</strike>
<del>strike</del>
7. URL or Link
<a href="https://telegram.me/NotCoding">text URL</a>
8. Inline Mention
<a href="tg://user?id=5217486447">inline mention</a>
9. Emoji
<emoji id="123456789abcdef">🐱</emoji>
10. Pre Formatted
<pre>pre-formatted</pre>
11. Pre Formatted(Specified Language)
<pre language="python">pre-formatted</pre>
12. Quote or Blockquote
<blockquote>Quoted text</blockquote>
@NotCoding | @CodesSnippet
Happy Coding 👨‍💻

Day 15👾: Given two binary strings s1 and s2 consisting of only 0s and 1s. Find the resultant string after adding the two Bin
Day 15👾:
Given two binary strings s1 and s2 consisting of only 0s and 1s. Find the resultant string after adding the two Binary Strings. Note: The input strings may contain leading zeros but the output string should not have any leading zeros.

Day 14👾: Given a string s, the objective is to convert it into integer format without utilizing any built-in functions. Refe
Day 14👾:
Given a string s, the objective is to convert it into integer format without utilizing any built-in functions. Refer the below steps to know about atoi() function. Cases for atoi() conversion: 1. Skip any leading whitespaces. 2. Check for a sign (‘+’ or ‘-‘), default to positive if no sign is present. 3. Read the integer by ignoring leading zeros until a non-digit character is encountered or end of the string is reached. If no digits are present, return 0. 4. If the integer is greater than 2**31 – 1, then return 2**31 – 1 and if the integer is smaller than -231, then return -231.

» Random Password Generator using Tailwind
Random Password Generator is a web application that allows users to create secure passwords based on their preferences. It is built using HTML, TailwindCSS, and JavaScript.
NOTE: To setup Tailwindcss in your pc follow these instructions.
› Here's HTML Code of it.
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Random Password</title>
    <link rel="stylesheet" href="style.css">
    <link rel="shortcut icon" href="icon.png" type="image/x-icon">
</head>
<body class="p-0 m-0 h-[100vh] w-full grid place-content-center justify-items-center place-items-center text-white bg-blue-400">
    <div class="bg-slate-400 h-[95vh] w-[97vw] rounded-2xl flex justify-center items-center">
        <div class="bg-slate-600 h-[18rem] w-[25rem] rounded-xl border-b-black p-2 text-center">
            <h1 class="font-extrabold font-serif mt-1 select-none cursor-default">
                Random Password Generator
            </h1>
            <div class="h-fit flex justify-center items-center flex-col border-black border-2 m-5 rounded-xl">
                <div class="p-2 h-[4rem] border border-black w-[95%] mt-2 rounded-t-xl rounded-b-md flex justify-center items-center">
                    <code id="pass-gen" class="select-none"></code>
                </div>
                <div class="mt-1 mb-2 rounded-b-xl rounded-t-md p-2 w-[95%] h-fit border-black border cursor-pointer active:scale-95 hover:bg-gray-500 hover:border-green-300 transition duration-200 ease-in-out" id="copy-item">
                    <h2 class="font-semibold font-sans select-none">
                        Copy
                    </h2>
                </div>
            </div>
            <div class="flex justify-center items-center m-2 select-none">
                <div class="px-2 cursor-pointer select-none">
                    <input type="checkbox" name="Alphabet" id="alphabets" class="cursor-pointer">
                    <label for="alphabets" class="cursor-pointer select-none">Alphabets</label>
                </div>
                <div class="px-2 cursor-pointer select-none">
                    <input type="checkbox" name="Numbers" id="numbers" class="cursor-pointer">
                    <label for="numbers" class="cursor-pointer select-none">Numbers</label>
                </div>
                <div class="px-2 cursor-pointer select-none">
                    <input type="checkbox" name="Symbols" id="symbols" class="cursor-pointer">
                    <label for="symbols" class="cursor-pointer select-none">Symbols</label>
                </div>
            </div>
            <div class="flex justify-center items-center">
                <div class="h-fit w-[90%] p-2 font-bold rounded-3xl bg-green-600 cursor-pointer text-black select-none active:scale-95 hover:bg-green-500 transition duration-200 ease-in-out" id="generate-button">
                    Generate
                </div>
            </div>
        </div>
    </div>
    <script src="script.js"></script>
</body>
</html>
• For Full Code Here • Demo Website is Here
@NotCoding | @CodesSnippet
Happy Coding 👨‍💻

Day 13👾: You are given an integer array arr[]. Your task is to find the smallest positive number missing from the array. Not
Day 13👾:
You are given an integer array arr[]. Your task is to find the smallest positive number missing from the array. Note: Positive number starts from 1. The array can have negative integers too.

° Setup and install Tailwindcss °
→ To setup and install Tailwindcss in your local machine (pc), you need to follow some steps!!
→ At first to install Tailwindcss you need nodejs installed in your pc, let's intsall nodejs first.. › To install nodejs visit official website of nodejs, download latest version and install it simply by running that executable file. › If you have Mac or linux then go to Official website and choose nodejs for your machine. > Verify installation by running command: node -v
→ Now node is installed in your pc now we will install Tailwindcss, follow the steps 1. Go to folder where you want to make your project. (You can also install it directly by terminal.) Example:
cd D:/code/ 
2. Right-click and open in terminal or open that folder in vs code and open terminal there. 3. Install Tailwindcss.
npm install -D tailwindcss
4. Initalize Tailwind for your project (run this command in that directory where you want to setup and develop your project).
npx tailwindcss init
5. You will see tailwind.config.js named file is created, you need to edit it. Open that file you will see some code (keep it for now let's create some folder first). 6. Create 2 folders named dist and src, in src folder create a file named input.css and write this code in this file.
@tailwind base;
@tailwind components;
@tailwind utilities;
7. And in dist folder your all project file will placed make their index.html and style.css. 8. Now edit that tailwind.config.js mentioned in step 5. Edit Content property in this file.
/** @type {import('tailwindcss').Config} */
module.exports = {
  content: ["./dist/*.html"],
  theme: {
    extend: {},
  },
  plugins: [],
}
9. Now run this code in terminal (This will work as live server for tailwindcss).
npx tailwindcss -i ./src/input.css -o ./dist/style.css --watch
10. Now Tailwindcss installed and now u can write your html code. You don't need to edit style.css just write code in html file. For more visit official website of tailwindcss and read docs.
@NotCoding | @CodesSnippet
Happy Coding 👨‍💻

Day 12👾: Given an array of integers arr[] in a circular fashion. Find the maximum subarray sum that we can get if we assume
Day 12👾:
Given an array of integers arr[] in a circular fashion. Find the maximum subarray sum that we can get if we assume the array to be circular.

Day 11👾: Given an array arr[] that contains positive and negative integers (may contain 0 as well). Find the maximum product
Day 11👾:
Given an array arr[] that contains positive and negative integers (may contain 0 as well). Find the maximum product that we can get in a subarray of arr[]. Note: It is guaranteed that the output fits in a 32-bit integer.

Day 10👾: Given an array arr[], the task is to find the subarray that has the maximum sum and return its sum.
Day 10👾:
Given an array arr[], the task is to find the subarray that has the maximum sum and return its sum.

Day 09👾: Given the heights of n towers and a positive integer k, increase or decrease the height of all towers by k (only on
Day 09👾:
Given the heights of n towers and a positive integer k, increase or decrease the height of all towers by k (only once). After modifications, the task is to find the minimum difference between the heights of the tallest and the shortest tower.

» Image Captcha Generator 👨‍💻
Let's make a image captcha generator using python. You can use it in your website or in telegram bots for user verifications, it generate random text in image so that bots can be recognize..
1. At first create virtual environment for your project (This is more convenient when you building a project, it provides an isolated space from your default local machine's python interpreter.
If you don't know how to make virtual environment, Follow This Post
2. Now let's install libraries that we need
pip install captcha pillow
3. Let't Write code for our image captcha
from captcha.image import ImageCaptcha
from io import BytesIO
from PIL import Image
import string, random

def random_text():
    text = string.ascii_letters + string.digits
    f_text = ''
    for i in range(6):
        f_text += random.choice(text)
    return f_text

def image_captcha(text: str) -> None:
    captcha: ImageCaptcha = ImageCaptcha(width=400, height=200, font_sizes=(50, 70, 100))

    data: BytesIO = captcha.generate(text)
    image: Image = Image.open(data)
    image.show('Temp')


if __name__ == '__main__':
    image_captcha(random_text())
Run Code and test yourself
@NotCoding | @CodesSnippet
Happy Coding 👨‍💻

Day 08👾: Given an array prices[] of length n, representing the prices of the stocks on different days. The task is to find t
Day 08👾:
Given an array prices[] of length n, representing the prices of the stocks on different days. The task is to find the maximum profit possible by buying and selling the stocks on different days when at most one transaction is allowed. Here one transaction means 1 buy + 1 Sell. If it is not possible to make a profit then return 0. Note: Stock must be bought before being sold.

Day 07 👾: Q. Stock Buy and Sell - Multiple Transaction Allowed (Hard) Given an array prices[] of size n denoting the cost of
Day 07 👾:
Q. Stock Buy and Sell - Multiple Transaction Allowed (Hard) Given an array prices[] of size n denoting the cost of stock on each day, the task is to find the maximum total profit if we can buy and sell the stocks any number of times. Note: We can only sell a stock which we have bought earlier and we cannot hold multiple stocks on any day.

Creating Virtual Environment for Python » Download Python
First you need python installed in your local machine to create virtual environment. Download Python from Here
» Steps to create '.env' folder (virtual environment for python) 1. Navigate to the folder where you want to make your project Example:

cd D:/code/
2. Open terminal (local terminal, command prompt, or vs code terminal) in that folder 3. Now, use these commands
python --version # Type this and hit enter to verify the python version


# Now use these commands
python -m venv .env
4. Your virtual environment is created in that folder, now activate this virtual environment using this command. Command for 'Command Prompt':
.\env\Scripts\activate
Command for 'Powershell':
.\env\Scripts\Activate.ps1
Command for Git Bash or WSL:
source \.env\bin\activate
If Powershell gives you error like File cannot be loaded because running scripts is disabled then use this command!
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
5. Congratulations🎊 Your virtual environment activated now make your project Happy Coding 👨‍💻

Day 06 👾: Given an array arr[] consisting of n integers, the task is to find all the array elements which occurs more than f
Day 06 👾:
Given an array arr[] consisting of n integers, the task is to find all the array elements which occurs more than floor(n/3) times. Note: The returned array of majority elements should be sorted.

F-strings usage and formats in Python! Code Examples: 1. Basic F-string:
name = "Chiku"
age = 21
print(f"Name: {name}, Age: {age}")
# Use code and learn.
2. Debugging:
var = 100
print(f"var={var}")
print(f"{var = }")
# Use code and learn.
3. Rounding:
decimal_number = 1234.5678
percent = 0.5678
print(f"Decimal: {decimal_number:.2f}")
print(f"Percent: {percent:.2%}")
# Use code and learn.
4. Thousands separators:
big_number = 1000000
print(f"Big number: {big_number:,}")
# Use code and learn.
5. Date and time formatting:
import datetime
now = datetime.datetime.now()
print(f"Date: {now:%x}")
print(f"Date and time: {now:%c}")
print(f"Time: {now:%H:%M:%S}")
# Use code and learn.
6. Raw strings:
path = fr"C:\Users\{user}\Documents"
# Use code and learn.
# Do not use in big project, use this format for fun only
7. Alignment:
text = "Chiku"
print(f"{text:>20}")  # Right align
print(f"{text:^20}")  # Center align
print(f"{text:<20}")  # Left align
# Use code and learn.
8. Custom F-string class:
class Text:
    def __init__(self, text):
        self.text = text

    def __format__(self, format_spec):
        if format_spec == "upper":
            return self.text.upper()
        elif format_spec == "lower":
            return self.text.lower()
        elif format_spec == "count":
            return str(len(self.text))
        else:
            raise ValueError(f"Invalid format specifier: {format_spec}")

text = Text("Chiku")
print(f"{text:upper}")
print(f"{text:lower}")
print(f"{text:count}")
# Use code and learn.

Day 05 👾: Given an array arr[] of size n, the task is to print the lexicographically next greater permutation of the given a
Day 05 👾:
Given an array arr[] of size n, the task is to print the lexicographically next greater permutation of the given array. If there does not exist any greater permutation, then find the lexicographically smallest permutation of the given array. Let us understand the problem better by writing all permutations of [1, 2, 4] in lexicographical order [1, 2, 4], [1, 4, 2], [2, 1, 4], [2, 4, 1], [4, 1, 2] and [4, 2, 1] If we give any of the above (except the last) as input, we need to find the next one in sequence. If we give last as input, we need to return the first one.

Day 04 👾: Given an array of integers arr[] of size n, the task is to rotate the array elements to the left by d positions.
Day 04 👾:
Given an array of integers arr[] of size n, the task is to rotate the array elements to the left by d positions.