Skip to content

Instantly share code, notes, and snippets.

View hariprasath2603's full-sized avatar
💭
Love to work

Hari Prasath hariprasath2603

💭
Love to work
View GitHub Profile

computePolkadotScore for the given art

This program contains three functions:

  1. calculateLipsRange - calculates the range of the lips in the given row
  2. calculatePolkadots - calculates the number of polkadots within and outside the lips range
  3. computePolkadotScore - computes the polkadot score for the given art

I considered few inputs are given to the program and it will matched agains any given art and it will return the polkadot score. Here I followed finctional programming for logical seperationa of the code. Class based programming is also a good option to follow.

@hariprasath2603
hariprasath2603 / Pydantic.ipynb
Created September 3, 2025 23:05
Pydantic Basics
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hariprasath2603
hariprasath2603 / GCD.java
Last active April 28, 2021 03:35
Trying to collect important problems
class Test
{
// Recursive function to return gcd of a and b
static int gcd(int a, int b)
{
// Everything divides 0
if (a == 0)
return b;
if (b == 0)
return a;