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 / pwc-281.md
Created July 27, 2024 12:33
The Weekly Challenge - 281

The Weekly Challenge - 281

Early Bird Club members ONLY

Task 1: Check Color

Submitted by: Mohammad Sajid Anwar

You are given coordinates, a string that represents the coordinates of a square of the chessboard as shown below:

Week_281_Task_1

@manwar
manwar / pwc-280.md
Last active July 18, 2024 21:59
The Weekly Challenge - 280.

The Weekly Challenge - 280

Early Bird Club members ONLY

Task 1: Twice Appearance

Submitted by: Mohammad Sajid Anwar

You are given a string, $str, containing lowercase English letters only.

Write a script to print the first letter that appears twice.

@manwar
manwar / wsl-issue.md
Last active July 16, 2024 11:09
WSL issue

Issue

ls: cannot access '/mnt/c': Input/output error

Solution

a) Close down all WSL instances.

b) Opem windows terminal as Administrator and type the command below:

@manwar
manwar / pwc-279.md
Last active July 20, 2024 12:41
The Weekly Challenge - 279

The Weekly Challenge - 279

Early Bird Club members ONLY

Task 1: Sort Letters

Submitted by: Mohammad Sajid Anwar

You are given two arrays, @letters and @weights.

Write a script to sort the given array @letters based on the @weights.

@manwar
manwar / pwc-278.md
Last active July 7, 2024 13:19
The Weekly Challenge - 278

The Weekly Challenge - 278

Early Bird Club members ONLY

Task 1: Sort String

Submitted by: Mohammad Sajid Anwar

You are given a shuffle string, $str.

Write a script to return the sorted string.

@manwar
manwar / pwc-277.md
Last active July 7, 2024 19:29
The Weekly Challenge - 277

The Weekly Challenge - 277

Early Bird Club members ONLY

Task 1: Count Common

Submitted by: Mohammad Sajid Anwar

You are given two array of strings, @words1 and @words2.

Write a script to return the count of words that appears in both arrays exactly once.

@manwar
manwar / pwc-276.md
Last active June 25, 2024 21:23
The Weekly Challenge - 276

The Weekly Challenge - 276

Early Bird Club members ONLY

Task 1: Complete Day

Submitted by: Mohammad Sajid Anwar

You are given an array of integers, @hours.

Write a script to return the number of pairs that forms a complete day.

@manwar
manwar / pwc-275.md
Last active June 23, 2024 20:14
The Weekly Challenge - 275

The Weekly Challenge - 275

Early Bird Club members ONLY

Task 1: Broken Keys

Submitted by: Mohammad Sajid Anwar

You are given a sentence, $sentence and list of broken keys @keys.

Write a script to find out how many words can be typed fully.

@manwar
manwar / useful-git-commands.md
Last active June 19, 2024 17:09
Useful git commands.
@manwar
manwar / pwc-274.md
Last active June 14, 2024 08:23
The Weekly Challenge - 274

The Weekly Challenge - 274

Early Bird Club members ONLY

Task 1: Goat Latin

Submitted by: Mohammad Sajid Anwar

You are given a sentence, $sentance.

Write a script to convert the given sentence to Goat Latin, a made up language similar to Pig Latin.