Weekly Challenge: Average Progression
dev.to·1d·
Discuss: DEV
📊APL Heritage
Preview
Report Post

Weekly Challenge 351

Each week Mohammad S. Anwar sends out The Weekly Challenge, a chance for all of us to come up with solutions to two weekly tasks. My solutions are written in Python first, and then converted to Perl. It’s a great way for us all to practice some coding.

Challenge, My solutions

Task 1: Special Average

Task

You are given an array of integers.

Write a script to return the average excluding the minimum and maximum of the given array.

My solution

This task doesn’t require much explanation. I start by calculating the min_value and max_value. I then have a li…

Similar Posts

Loading similar posts...