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 May 20, 2018
Aidan Swindells
from Sacatepequez, Guatemala

Skills & Expertise Required

Python 

Candidate shortlisted and hired
Hiring open till - Dec 8, 2022

Work from Anywhere

40 hrs / week

Hourly Type

Remote Job

$4.79

Cost

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

Python+NLTK Scraping Work

I have a scraping work that needs to be completed in Python and need to use NLTK library.

I need someone who can start right away and complete fast.

AWS Cloud server IT with Python/API/PostgreSQL knowledge

I am a founder of a Startup and I have no IT background.
For the needs of my startup activities I am looking for an AWS Cloud server manager to perform the following tasks 4 hours a day for 7 days:
- Understand my project requirements and adv...read more

Easy Web Scraping (product entries, longterm)

Dear Freelancer,

we need time to time scrape some data (to .csv), from various sources, sometimes behind CloudFlare or other similar anti-scraping tools.

This job is longterm cooperation..

Thank you for offers!

Machine learning

Looking for some one who has experience in machine and deep learning models and can work quickly.

ImageVis3D - Customize Open Source Software Created using C++

- I need to customize the ImageVis3D - Open Source Software
- I need to explain important functionality of ImageVis3D
I will provide a source code through Toogit chat with right person only.