Submitted by: Mohammad Sajid Anwar
You are given three list of strings.
Write a script to find out if the first two list are similar with the help the third list. The third list contains the similar words map.
You are given three list of strings.
Write a script to find out if the first two list are similar with the help the third list. The third list contains the similar words map.
You are given a target number.
Write a script to arrange all the whole numbers from 1 up to the given target number into a circle so that every pair of side-by-side numbers adds up to a perfect square. Please make sure, the last number and the first must also add up to a square.
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use Test::More; | |
| use List::Util qw(first); | |
| # | |
| # lib/ |
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use Benchmark qw(cmpthese); | |
| print "Generating 1000x1000 matrix...\n"; | |
| my @nums; | |
| for my $r (0 .. 999) { | |
| for my $c (0 .. 999) { |
You are given a n x n matrix containing integers from 1 to n.
Write a script to find if every row and every column contains all the integers from 1 to n.
You are given a string consisting of English letters.
Write a script to find the vowel and consonant with maximum frequency. Return the sum of two frequencies.
You are given a string.
Write a script to reverse the given string without using standard reverse function.
You are given an alphanumeric string.
Write a script to find the second largest distinct digit in the given string. Return -1 if none found.
I just came across recent change to HTTP::Message released as v7.02.
The entry in Changes
7.02 2026-06-05 23:28:36Z
- now handling HTTP method '0' (GH#211) (Karen Etheridge)
I asked myself, method '0'?
Never heard of it before.
You are given a string.
Write a script to find whether any substring of length 2 is also present in the reverse of the given string.