Submitted by: Mohammad Sajid Anwar
You are given an array of strings.
Write a script to return all strings that are a substring of another word in the given array in the order they occur.
You are given an array of strings.
Write a script to return all strings that are a substring of another word in the given array in the order they occur.
You are given an array of integers.
Write a script to return the average excluding the minimum and maximum of the given array.
You are given a string.
Write a script to return the number of good substrings of length three in the given string.
You are given a string.
Write a script to return the power of the given string.
You are given a string of even length.
Write a script to find out whether the given string can be split into two halves of equal lengths, each with the same non-zero number of vowels.
You are given a date in the form: 10th Nov 2025.
Write a script to format the given date in the form: 2025-11-10 using the set below.
You are given a string containing only ( and ).
Write a script to find the length of the longest valid parenthesis.
You are given an array of integers, @ints.
Find all the peaks in the array, a peak is an element that is strictly greater than its left and right neighbours. Return the indices of all such peak positions.
You are given an array of integers, @ints and an integer, $x.
Write a script to add $x to the integer in the array-form.
You are given a list of numbers.
Find the number that is closest to zero and return its distance to zero.