Submitted by: Mohammad Sajid Anwar
You are given coordinates, a string that represents the coordinates of a square of the chessboard as shown below:
You are given coordinates, a string that represents the coordinates of a square of the chessboard as shown below:
You are given a string, $str
, containing lowercase English letters only.
Write a script to print the first letter that appears twice.
You are given two arrays, @letters
and @weights
.
Write a script to sort the given array @letters
based on the @weights
.
You are given a shuffle string, $str
.
Write a script to return the sorted string.
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.
You are given an array of integers, @hours
.
Write a script to return the number of pairs that forms a complete day.
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
.
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
.