Submitted by: Mohammad Sajid Anwar
You are given a list of operations.
Write a script to return the final value after performing the given operations in order. The initial value is always 0.
You are given a list of operations.
Write a script to return the final value after performing the given operations in order. The initial value is always 0.
You are given a string and a positive integer.
Write a script to format the string, removing any dashes, in groups of size given by the integer. The first group can be smaller than the integer but should have at least one character. Groups should be separated by dashes.
You are given an array of numbers with even length.
Write a script to return the count of distinct average. The average is calculate by removing the minimum and the maximum, then average of the two.
You are given an array of integers.
Write a script to return the maximum between the number of positive and negative integers. Zero is neither positive nor negative.
You are given a list of words containing alphabetic characters only.
Write a script to return the count of words either starting with a vowel or ending with a vowel.
#!/usr/bin/env perl | |
use v5.30; | |
use Safe; | |
use JSON; | |
use LWP::UserAgent; | |
use Digest::SHA qw(sha256_hex); | |
our $VERBOSE = 0; |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>The Weekly Challenge :: Stats</title> | |
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
<style> | |
body { | |
font-family: Arial, Helvetica, sans-serif; | |
font-size: 14px; |
You are given a string of lowercase letters.
Write a script to find the position of all groups in the given string. Three or more consecutive letters form a group. Return "" if none found.
You are given an array of words and a word.
Write a script to return true if concatenating the first letter of each word in the given array matches the given word, return false otherwise.
First we need Personal Access Token (PAT) with workflow permission.
My existing PAT didn't have the permisson to create/update workflows.
So I created a new PAT.
Step 1: Go to your GitHub account settings.
Step 2: Navigate to Developer settings
Step 3: Personal access tokens
Step 4: Generate new token.