⌘K
Flycodx

Internet Plan Efficiency Maximizer

Internet Plan Efficiency Maximizer

MediumArrays0% accepted

Arjun in Pune compares Jio Fiber plans. He wants the plan that offers the best speed-per-rupee value while meeting his minimum speed requirement.

Approach

Given arrays of plan speeds (Mbps) and prices (₹), find the index of the plan with the highest speed-per-rupee ratio that meets the minimum speed requirement.

Input

speeds=[100,200,300,50], prices=[500,1500,2500,200], minSpeed=100

Output

0
solution.py
Loading editor...
Test 1
Test 2
Test 3

Press Run to test your custom input, or Submit to judge against all test cases.

Sign in to continue

Create a free account to run code, submit solutions and track progress.

  • Free forever — no credit card
  • 10+ languages with live execution
  • Points, streaks & leaderboards
Auto Save OnLn 1, Col 1Spaces: 4UTF-8LFPython 3