Skip to content

Instantly share code, notes, and snippets.

View manwar's full-sized avatar
✌️
Undercover Contributor

Mohammad Sajid Anwar manwar

✌️
Undercover Contributor
View GitHub Profile
@manwar
manwar / design-patterns.md
Last active September 17, 2025 10:31
Design Patterns in Modern Perl
@manwar
manwar / pwc-339.md
Last active September 10, 2025 22:53
The Weekly Challenge - 339

The Weekly Challenge - 339

Early Bird Club members ONLY

Task 1: Max Diff

Submitted by: Mohammad Sajid Anwar

You are given an array of integers having four or more elements.

Write a script to find two pairs of numbers from this list (four numbers total) so that the difference between their products is as large as possible.

@manwar
manwar / pwc-338.md
Last active September 1, 2025 13:52
The Weekly Challenge - 338

The Weekly Challenge - 338

Early Bird Club members ONLY

Task 1: Highest Row

Submitted by: Mohammad Sajid Anwar

You are given a m x n matrix.

Write a script to find the highest row sum in the given matrix.

@manwar
manwar / pwc-337.md
Last active August 26, 2025 13:43
The Weekly Challenge - 337

The Weekly Challenge - 337

Early Bird Club members ONLY

Task 1: Smaller Than Current

Submitted by: Mohammad Sajid Anwar

You are given an array of numbers, @num1.

Write a script to return an array, @num2, where $num2[i] is the count of all numbers less than or equal to $num1[i].

@manwar
manwar / a-level-chemistry-aqa-board.md
Last active August 22, 2025 14:01
A-level Chemistry - AQA Board

Watford Grammar School for Girls follows the AQA exam board for its A-Level Chemistry course.

Chemistry Syllabus

@manwar
manwar / pwc-336.md
Last active August 23, 2025 23:02
The Weekly Challenge - 336

The Weekly Challenge - 336

Early Bird Club members ONLY

Task 1: Equal Group

Submitted by: Mohammad Sajid Anwar

You are given an array of integers.

Write a script to return true if the given array can be divided into one or more groups: each group must be of the same size as the others, with at least two members, and with all members having the same value.

@manwar
manwar / pwc-335.md
Last active August 12, 2025 13:08
The Weekly Challenge - 335

The Weekly Challenge - 335

Early Bird Club members ONLY

Task 1: Common Characters

Submitted by: Mohammad Sajid Anwar

You are given an array of words.

Write a script to return all characters that is in every word in the given array including duplicates.

@manwar
manwar / pwc-334.md
Created August 4, 2025 22:24
The Weekly Challenge - 334

The Weekly Challenge - 334

Early Bird Club members ONLY

Task 1: Range Sum

Submitted by: Mohammad Sajid Anwar

You are given a list integers and pair of indices..

Write a script to return the sum of integers between the given indices (inclusive).

@manwar
manwar / pwc-333.md
Created July 22, 2025 13:35
The Weekly Challenge - 333

The Weekly Challenge - 333

Early Bird Club members ONLY

Task 1: Straight Line

Submitted by: Mohammad Sajid Anwar

You are given a list of co-ordinates.

Write a script to find out if the given points make a straight line.

@manwar
manwar / pwc-332.md
Created July 21, 2025 14:38
The Weekly Challenge - 332

The Weekly Challenge - 332

Early Bird Club members ONLY

Task 1: Binary Date

Submitted by: Mohammad Sajid Anwar

You are given a date in the format YYYY-MM-DD.

Write a script to convert it into binary date.