- #1
- 2,168
- 193
I have an array that looks like
A=[0,0,1,1,2,5,6,3,7,7,0,0,1,1,2,5,6,3,7,7]
since the "0,0,1,1,2,5,6,3,7,7" part reapeats itself I don't need the second part so for a given array it should give me
A=[0,0,1,1,2,5,6,3,7,7]
I can't use the set() function and I don't know what else I can use in this case.Is there a function which can do this operation ?
I tried to write a code but I couldnt
A=[0,0,1,1,2,5,6,3,7,7,0,0,1,1,2,5,6,3,7,7]
since the "0,0,1,1,2,5,6,3,7,7" part reapeats itself I don't need the second part so for a given array it should give me
A=[0,0,1,1,2,5,6,3,7,7]
I can't use the set() function and I don't know what else I can use in this case.Is there a function which can do this operation ?
I tried to write a code but I couldnt