photo

tushar bhonsle


Con actividad desde 2019

Followers: 0   Following: 0

Estadística

  • Thankful Level 1

Ver insignias

Feeds

Ver por

Pregunta


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

casi 5 años hace | 1 respuesta | 1

1

respuesta

Pregunta


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...

más de 5 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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];

más de 5 años hace | 2 respuestas | 0

2

respuestas