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
Himanshu Singh
from Michigan, United States

Skills & Expertise Required

Python 

Open for hiringApply before - Jul 25, 2024

Work from Anywhere

40 hrs / week

Hourly Type

Remote Job

$4.79

Cost

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

Remote Longterm Expert needed for AWS CI/CD Pipeline Setup

Hi, This is a very long term Remote job ideally more than a year and it can go beyond based on performance of candidate. Im an Engineer need help in supporting Project which is on AWS, and who have *expert level experience i.e more than 7+ years of...read more

flask restful API, send SMS via AWS sns service

NOTE: Make sure you know how to deal with aws sms/sns and aws login techniques with in python flask api.

We need one api with two methods will be describe it later. I will share some sample test cases and sample mysql stored procedure call s...read more

d3.js chart big data

I have a d3 line chart with a maximum of 14 lines.
the full dataset of the chart is around 20millions of datapoints which i want to display.

therfore i need some solution to reduce the datapoints for visualisation in an performance and...read more

ArcGIS Designer/Developer for an Interactive Campus Map

Background

We are working with a major university in Texas to demonstrate the power of giving and it impact on the entire worldwide academic network. The mission of the project is to create a storytelling platform that highlights the stories...read more

Solving a fractional differential equation using a neural network.

I want to solve a fractional differential equation. I already make neural network in TensorFlow but it has some bugs I couldnt fix it. May be you can do it.