Vivek Siva

Author
Vivek Siva

Blogs
Vivek writes at the crossroads of AI, ethics, and the future of hiring. With a background in both engineering and philosophy, they challenge assumptions in how we assess and select talent.
author’s Articles

Insights & Stories by Vivek Siva

Read Vivek Siva for deeply reflective takes on automation, AI interviews, and what fair, inclusive hiring could look like in tomorrow’s workplace.
Clear all
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Filter
Filter

Why are all-women hackathons the rage this season?

In 1970, John Horton Conway devised an algorithm, often termed the “Doomsday Algorithm,” to quickly calculate the day of the week using simple mental math.

This algorithm uses the formula: (d + m + y + [y/4] + c) mod 7

Where d is the day, m is the month, y is the year, and c is the century number.

Each weekday is assigned a number using modulo 7. In ISO 8601 standards, Monday is 1 and Sunday is 7.

Understanding the Calendar

A common year has 365 days, and a leap year has 366. Since 365 mod 7 = 1, each new year starts on the next weekday compared to the previous year, unless it's a leap year.

Some months start on the same day of the week. For example, April and July 2016 both started on a Friday because the days between them (91) is divisible by 7.

Determination of day of week

Several months begin on the same weekday as others in the same year.

For Common Years:

  • January and October
  • February, March, and November
  • April and July
  • No month corresponds with August
Common year month alignment

For Leap Years:

  • January, April, and July
  • February and August
  • March and November
  • No month corresponds with October
Leap year month alignment

Tomohiko Sakamoto's Implementation

Sakamoto extended the Doomsday Algorithm to factor in leap years.

Using month-day combinations and modulo arithmetic, you get a consistent pattern. For example:

  • January has 31 days → 31 mod 7 = 3 → February 1 is 3 days after January 1
  • January + February = 59 days → 59 mod 7 = 3 → March 1 is also 3 days after January 1

This gives us the list: {0,3,3,6,1,4,6,2,5,0,3,5}

To account for leap years, use: y/4 - y/100 + y/400. For months before March, decrement the year by 1: y -= m < 3

This changes the month values to: {0,3,2,5,0,3,5,1,4,6,2,4}

C++ Implementation

int dow(int y, int m, int d)
{
  static int t[] = {0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4};
  y -= m < 3;
  return (y + y/4 - y/100 + y/400 + t[m-1] + d) % 7;
}

Python Implementation

def day_of_week(year, month, day):
    t = [0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4]
    year -= month < 3
    return (year + year // 4 - year // 100 + year // 400 + t[month - 1] + day) % 7

With this, determining the weekday for any date becomes a quick and fun mental trick.

How small and medium-sized companies (SMEs) can promote gender diversity

“I think women are foolish to pretend they are equal to men, they are far superior and always have been.” — Sir William Gerald Goulding

“When I joined Microsoft in 1987, I was the only woman in my hiring class. Nearly 30 years later, the landscape for women in computer science hasn’t improved—in fact, it’s gotten worse.” — Melinda Gates

These polar opposite updates sparked curiosity about where women stand in tech today. Despite progress, the gender diversity gap remains wide. Women still represent only 25% of the tech workforce, the same as in 2014. How is this still a thing?

According to a 2015 study by LeanIn.org and McKinsey,

we are 100 years away from achieving gender equality

This post explores problems at various stages of the pipeline and what small and medium-sized companies can do to achieve gender diversity.

Gender diversity - Why is it important?

A gender gap undeniably exists in tech. Overlooking talented candidates based on gender is not only unethical, it’s a loss for the company. Gender-diverse companies are 15% more likely to outperform their peers financially.

What is the underlying problem?

The gender diversity issue is a pipeline problem, seen across four key stages:

  • Educating women
  • Recruiting women
  • Paying & promoting women
  • Retaining women

Gender Diversity- Pipeline problem-Infographic

How can SMEs make a difference?

SMEs make up 45% of U.S. employment. Their collective efforts can shift the gender diversity needle significantly.

1. Educating women

Only 18% of Computer Science majors are women. While nonprofits like “Girls Who Code” and “Black Girls Code” are helping, SMEs can support by donating, mentoring, or volunteering.

2. Recruiting women

Try these strategies:

a) Blind résumé reviews

  • Concealing applicant identity can increase fairness and reduce bias.
  • Studies show anonymized résumés boost chances for women and minority candidates.
  • Use tools like TalentSonar and GapJumpers to automate this process.

b) Mandatory gender bias training

Make all employees aware of unconscious bias through regular training sessions.

c) Women-only hackathons

Events focused on women provide a platform to identify top talent. Companies like Amazon and WalmartLabs have used this strategy effectively.

cta-1

3. Paying and promoting women

For every $1 men make, women make $0.79.

a) Audit your pay and promotion practices

Evaluate total compensation (salary, benefits, stock options) and assess promotion data for gender parity.

Wage gap between men and women: Gender diversity

b) Create a salary range structure

Define transparent salary bands across levels to ensure fair compensation.

c) Implement fair policy & ensure accountability

Assign KPIs related to gender diversity to HR roles to create accountability and progress.

4. Retaining women employees

Men are 45% more likely to be retained than women. Causes include:

  • Unfavorable work policies
  • Sexism
  • Bias against motherhood

a) Create favorable policies and inclusive work environments

  • Enforce a zero-tolerance sexual harassment policy.
  • Embed inclusivity into your company culture.
  • Design policies with women’s needs in mind, including flexibility.
  • Include women in leadership and hiring decisions.

b) Implement a good maternity policy

Despite no national paid leave law in the U.S., tech giants offer generous policies. SMEs should aim for at least 12 weeks of paid leave or offer maternity insurance.

Comprehensive Maternity Policy: Promote Gender Diversity

Need a guide to get started?

Checklist to promote gender diversity in SMEs

It might seem daunting, but with intention and commitment, gender diversity is an achievable goal.

Why not make it one of your 2017 business goals?

**Interested in organizing a women-only hackathon? Check out HackerEarth Sprint. HackerEarth has supported over 100 companies globally with hackathons.

sprint-product-icons-1

Interested in conducting an exclusive hackathon for women?

sprint-product-icons-3