New: 77 pattern programs with tested code in C, C++, Java and Python Explore patterns

Privacy Policy

Last updated: 20 November 2026

This policy explains what personal data Pattern Programs (patternprograms.com) collects, why, how long we keep it and what your rights are. We collect as little as possible: you can read every tutorial without an account and without giving us any personal information.

Who we are

Pattern Programs is run by Ghanendra Yadav, Bengaluru, Karnataka, India. For the purposes of India’s Digital Personal Data Protection Act, 2023 (DPDP Act) we are the Data Fiduciary, and for visitors from the European Union or the United Kingdom we are the controller under the GDPR. You can reach us through the contact form (topic Privacy request).

The personal data we process, and why

DataWhen we collect itPurposeHow long we keep it
Name, email address, optional website, comment text, IP address, browser detailsWhen you post a commentTo show your comment, moderate it, fight spam and contact you about it if needed. Your email is never published.For as long as the comment is published; spam is deleted automatically within 15 days
Name, email address, topic, subject, message, IP address, browser detailsWhen you use the contact formTo reply to you and handle your request12 months after the last message, unless needed longer for an open request
IP address, date and time, page requested, referring page, browser details (server logs)When you visit any pageTo run the website securely, block attacks and fix errorsKept by our host for a limited period, normally a few weeks
Address of a page that was not found, the page you came from, browser details, date and timeWhen you open a broken linkTo find and repair broken linksOnly the latest 100 entries are kept; older ones are deleted automatically
IP address, the username tried, date and timeWhen someone fails to log in to the site’s admin areaTo block password-guessing attacksKept for a limited time, until the lockout expires or the log is cleared
Usage information through cookies (only if analytics are enabled)When you browse the siteTo understand which pages are useful and improve themUp to 14 months in Google Analytics
Advertising identifiers through cookies (only if ads are enabled)When you browse the siteTo show and measure ads that pay for the siteSet by Google and its partners; see their policies

We do not ask for, and do not want, sensitive information such as passwords, payment details, health information or government ID numbers. Please do not include it in comments or messages.

  • Consent: when you submit a comment or the contact form you give consent for the purposes above; analytics and advertising cookies are used only with consent where the law requires it.
  • Legitimate uses (DPDP Act section 7) and legitimate interests (GDPR): keeping the site secure, preventing spam and fixing errors.
  • Legal obligations: responding to lawful requests from authorities and keeping records the law requires.

Services that process data for us

ServiceWhat it doesData involved
HostingerWeb hosting, security scanning and backupsAll website data, including server logs
Akismet by AutomatticChecks comments for spamComment text, name, email, IP address and browser details
Gravatar by AutomatticShows a profile picture next to commentsA coded (hashed) version of your email address
Google Search Console (through Site Kit by Google)Shows how the site appears in Google SearchSearch statistics only; no visitor-level data
Google Analytics (if enabled, and only after you accept)Measures visits and popular pagesPseudonymous identifiers in cookies, approximate location, device and browser details
Google AdSense and its ad partners (if enabled)Shows advertisingCookies and identifiers used to show and measure ads
IndexNow (used by Microsoft Bing and other search engines)Tells search engines when a page is published, changed or removed, so search results stay up to datePage addresses only; no visitor data

We do not sell or rent personal data. The site uses its own fonts and plain share links, so simply reading a page does not send your data to social networks or font services. If you click a share button or a “Read summary with AI tools” link, you leave our site and the address of the page you were reading is sent to that service under its own privacy policy.

Code playground

The code playground (the Edit & Run buttons under programs and the playground page) runs your code entirely inside your own browser using WebAssembly. The code you write and the input you type are not sent to us or to anyone else, and we do not store them. The first time you run Python or C/C++, your browser downloads the language from our own website (about 7 MB for Python and 26 MB for C and C++) and keeps it in its cache. If you agree to the C/C++ download, we remember that choice in your browser’s local storage (ppg-cc-ok) so we do not ask again. You can remove it by clearing this site’s data in your browser.

Advertising

The site may show ads served by Google AdSense to cover running costs. When ads are enabled:

  • Third-party vendors, including Google, use cookies to serve ads based on your previous visits to this website or other websites.
  • Google’s use of advertising cookies enables it and its partners to serve ads to you based on your visits to this site and/or other sites on the internet.
  • You can opt out of personalised advertising in Google Ads Settings, and opt out of some third-party vendors’ cookies at aboutads.info or, in Europe, youronlinechoices.eu.
  • You can learn more in How Google uses information from sites or apps that use its services.
  • You will be asked for consent before analytics cookies are set, and before advertising cookies are set wherever the law requires it (for visitors in the EEA, the UK and Switzerland this may be Google’s own consent message). You can change your choice at any time with the Cookie settings link at the bottom of every page.

Cookies

We use a small number of cookies. Essential ones make comments and site administration work. Analytics and advertising cookies are used only if those features are switched on, and then only after you agree in the consent banner (for advertising, where the law requires consent). When they are switched on, a Cookie settings link at the bottom of every page lets you change or withdraw your choice. The full list is in our cookie policy.

Children

Many of our readers are students. Under the DPDP Act anyone under 18 is a child. You do not need to give us any personal data to use the site. If you are under 18, please ask a parent or guardian before posting a comment or sending us a message, because we need their verifiable consent to process your personal data. We do not knowingly track children, monitor their behaviour or direct targeted advertising at them. If you believe we hold a child’s data without consent, contact us and we will delete it.

Your rights

Depending on where you live, you have the right to:

  • get a summary of the personal data we hold about you and how it is used;
  • correct, complete or update inaccurate data;
  • have your data erased when it is no longer needed or you withdraw consent;
  • withdraw consent at any time, as easily as you gave it (withdrawal does not affect processing that already took place);
  • nominate another person to exercise your rights in case of death or incapacity (DPDP Act);
  • object to or restrict processing, and receive your data in a portable format (GDPR);
  • have your grievance addressed by us, and then complain to the Data Protection Board of India, or to your local data protection authority if you are in the EU or UK.

We do not use your personal data for automated decision-making or profiling that has legal or similarly significant effects on you.

To use any of these rights, send a request through the contact form with the topic Privacy request. Tell us the email address you used so we can find your data; we may ask you to confirm it is you. We reply within 30 days and resolve grievances within the time set by law, at most 90 days.

Where your data is processed

Our website is hosted by Hostinger, and some of the services listed above (Automattic and Google) process data in other countries, including the United States. These providers use contractual and technical safeguards, such as standard contractual clauses, for international transfers, and we only use services that are not restricted under Indian law.

How we protect your data

The site runs only over encrypted HTTPS, logins are protected against repeated attempts, the server is scanned for malware, software is kept up to date and backups are kept private. Only the site owner can access comments, messages and logs. No method of transmission or storage is completely secure, but we work to protect your data and will inform you and the authorities of a personal data breach where the law requires.

Changes to this policy

We update this policy when the site or the law changes, and show the date of the last update at the top. If a change is significant, for example when analytics or ads are switched on, we will also mention it on the home page.

Contact and grievance officer

Privacy questions, requests and grievances: Ghanendra Yadav, Bengaluru, Karnataka, India, through the contact form (topic Privacy request).