Sitemap
Pramila Madhava & Jibrael Jos, PhD

Pramila Madhava & Jibrael Jos, PhD

As an educationist with a passion for technology and a love for problem-solving,we aim to inspire students to embrace innovation and challenges with confidence.

Code Guru Challenge 2

1 min readMay 6, 2025

Written by Jibrael Jos, PhD

In this challenge, reaching

Level 4 Good

Level 6 Very Good

Level 7 Excellent

Level 0

Create an array in python of size 10

Fill array with 1,2,3,4,5,4,3,2,1,1

Level 1(Check Peak)

Answer 1 peak(largest) at Position 4 (height 5)

Level 2(Check NO Peaks)

Fill array with 1,2,3,4,5,6,7,8,9,10

Answer None as inclination goes up but does not go down

Level 3(Check how many Mountain Peaks)

Get Pramila Madhava & Jibrael Jos, PhD’s stories in your inbox

Join Medium for free to get updates from this writer.

Fill array with 2,3,4,3,2,4,7,3,2,1

Answer 2 peaks at position 2(height 4) ,6 (height 7)

Level 4(Identify tallest peak)

Fill array with 2,3,4,3,2,4,7,3,2,1

Answer 6 (height 7)

Level 5(Sharpest Incline)

Fill array with 1,3,8,8,9,9,10,12,12,1

Answer position 1, Jump of 8–3=5

Level 6(Sharpest Drop)

Fill array with 1,3,8,8,9,9,10,12,12,1

Answer position 8, Drop of 12–1=11

Level 7(Check Plateau)

Fill array with 2,3,4,4,4,3,2,2,2,1

Answer 1 plateau at height 4, length 3

Please Note Following is not a plateau

2,3,4,4,4,5,6,7,8,9 as after flat it goes up and not down as expected

--

--

Pramila Madhava & Jibrael Jos, PhD
Pramila Madhava & Jibrael Jos, PhD

Written by Pramila Madhava & Jibrael Jos, PhD

As an educationist with a passion for technology and a love for problem-solving,we aim to inspire students to embrace innovation and challenges with confidence.