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
Dziky Kalam
from Thuringia, Germany

Skills & Expertise Required

Python 

Open for hiringApply before - Jul 14, 2024

Work from Anywhere

40 hrs / week

Hourly Type

Remote Job

$4.80

Cost

Offer to work on this project closes in 13 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

Voice and Cloud Engineer w/ Twilio experience

Im looking a voice engineer that has experience with Twilio and SIP. Cloud architecture and API integration also a requirement.

This is a short term and immediate need, might be a longer term engagement.

Get paid to review Big Data Engineer (Spark, Python) questions.

We are looking for subject matter experts to review our Big Data Engineer interview screen tests: Spark-Python and related topics. These questions will be used as interview questions in a hiring process and we need to be sure that the problem stateme...read more

Algorithmic Trading Data Collection

Looking for an experienced Python developer with functional knowledge in stock trading. He/she should be able to
- Understand the basics of stock trading / Equities
- Data mining, Data science experience.

Well be using Quantopian to...read more

Senior Computer vision algorithm developer - for segmentation and matting on mobile

Were looking for an expert Computer vision developer for long term who is comfortable on working on both Server (testing models), and mobile (implementing via TFlite and CoreML).

** Only apply if youre experienced in TensorFlow Lite
**...read more

Looking for teaching expert

I know very little about programming and want to learn programming enough that I understand and can operate on my own.

This will be an ongoing project to learn Programming:

I would like a plan created with assignments.
One on on...read more