D
D
ddRko2014-01-31 18:31:23
Programming
ddRko, 2014-01-31 18:31:23

How to develop a function that takes a list of integers and determines the longest continuous string of identical numbers in it?

Good afternoon.
I recently got a quick look at f#. Help solve the problem:
Develop a function that receives a list of integers, determines the longest continuous chain of identical numbers in it. The result of the function must be a pair (number, chain length)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavlo Barmak, 2014-01-31
@kynisa

Might be worth checking it out and trying it out for yourself?

D
Dmitry Demidov, 2014-01-31
@ptitca_zu

I support @kynisa . The problem is something out of the textbook. It's true that I don't know much about F#, but it seems to me that even basic syntax knowledge is enough :)
Good luck ;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question