Remote Web Development Job In IT And Programming

Python Homework

Find more Web Development remote jobs posted recently Worldwide

Python Homework
Write a function that makes a list of intervals of a chosen number that appears consecutively in a list. Return indexes where the interval starts and ends. Simplified examples:

We chose number 1 that appears consecutively 3 times and then none and then 2 times again.
Input : [[1], [1], [1], [], [1], [1]]
Output : [[0, 2], [4, 5]]

We chose number 2 that appears once, none, once, none, and once.
Input : [[2], [], [2], [], [2]]
Output : [[0], [2], [4]]

We chose number 3 that appears consecutively 2 times, disappears, appears one, disappears, and appears twice
Input : [[3], [3], [], [], [], [3], [], [3], [3]]
Output : [[0, 1], [5], [7,8]]

Note that different numbers can be present in the lists. Intervals for number 1
Input : [[1,7,8], [6,7,1], [1,5,7], [6,7,8], [1,2,3], [1,2,3]]
Output : [[0, 2], [4, 5]]
About the recuiter
Member since Mar 14, 2020
Amjed Khan
from California, United States

Skills & Expertise Required

Python 

Open for hiringApply before - Jun 27, 2024

Work from Anywhere

40 hrs / week

Hourly Type

Remote Job

$4.79

Cost

Offer to work on this project closes in 45 days!
Are you interested in this Opportunity?

Looking for help? Checkout our video tutorial
How to search and apply for jobs

How to apply? Do you have more questions about the Job?
See frequently asked questions

Similar Projects

Generative Adversarial Networks Implementation

Looking for someone experienced in implementing Neural Networks/ Generative Adversarial Networks for an Academic Project.
Would require implementation of existing models (and re-training them), and making changes to them when required.

Conv Emissions data in GIS format for WRF/chem use

Looking for someone skilled qgis python fortran snd c. Also the WRF/Chem or any weather models. Need help in converting GIS emissions data to be readable in a weather model

Working with a Python Pandas DataFrame

Looking for an experienced Data Analyst to work on a Pandas DataFrame (Python). An Example of DataFrame and clear framework to deal with data will be provided. Our aim is to learn the method from you and use it on our data, which cannot be shared at...read more

Front end developer to help integrate components into WIX website

Drag and drop excel column onto web page, web page runs simple python script and results are displayed.
Looking for someone with strong front end and design skills who can do this quickly.
Preferable they use python.

Sql server and power bi visualization help

I need help writing a sql code and visualizing it on power bi. Custom visual will be plus