Write a method that returns the size and position of the longest bit sequence.
X := 00000000 00000000 00000000 01111100 size:= 5 pos:= 2 X:= 00000000 00001000 01110100 10001100 size:= 3 pos:= 12 X:= 01010101 01010101 01010101 01010101 size:=1 pos:=0
Edit: Return the right most position, in cases where multiple equal length bit sequences.
- Frameworks required.
- vb.net submissions are preferred.
- SourceCode must be in spoilered code tags.
If you don't want to reveal your code, then don't submit a submission.
- If you like you can include a Zip-File of the project / executable.
This post has been edited by AdamSpeight2008: 06 July 2013 - 01:08 PM
Reason for edit:: Updating and correcting wording of challenge.