photo

tushar bhonsle


Actif depuis 2019

Followers: 0   Following: 0

Statistiques

  • Thankful Level 1

Afficher les badges

Feeds

Afficher par

Question


Is there any group for python like this
Is there any group for python like this

presque 5 ans il y a | 1 réponse | 1

1

réponse

Question


I have an array of n elements like [1 2 4 8 16]. I want calculate frequency of all combinations. 1, 2 ,4 ,8, 16, 1+2, 1+4, 1+8, 1+16, 2+4, 2+8, 2+16, 4+8, 4+16, 8+16, 1+2+4, 1+2+8, 1+2+16, 1+2+4+8, 1+2+4+16, 1+2+4+8+16 How can i store output in array
1, 2 ,4 ,8 ,16 1+2, 1+4, 1+8, 1+16, 2+4, 2+8, 2+16, 4+8, 4+16, 8+16, 1+2+4, 1+2+8, 1+2+16, 1+2+4+8, 1+2+4+16, 1+2+4...

plus de 5 ans il y a | 1 réponse | 0

1

réponse

Question


How can i create array of 1:2^1000 column size?
I want to create an array of one column, which is long enough to 1:2^1000? Like a = [1:2^1000];

plus de 5 ans il y a | 2 réponses | 0

2

réponses