Posts

Showing posts from April 2, 2019

Teatre Guimerà (Barcelona)

Image
Teatre Guimerà (Barcelona) Dades Tipus teatre Període 6 Cronologia 16 abril 1958 inauguració 1964 clausura Ubicació geogràfica Estat Espanya Autonomia Catalunya Província província de Barcelona Comarca Barcelonès Municipi Barcelona Localització carrer del Pi, 11 41° 23′ 03″ N, 2° 09′ 51″ E  /  41.384111°N , 2.164222°E  / 41.384111; 2.164222 Coord.: 41° 23′ 03″ N, 2° 09′ 51″ E  /  41.384111°N , 2.164222°E  / 41.384111; 2.164222 El Teatre Guimerà va ser un espai teatral, ubicat en el núm. 11 del carrer del Pi, de Barcelona. Va ser inaugurat el 16 d'abril de 1958 i va tancar el 1964. Durant els anys que va romandre obert, s'hi van estrenar i representar obres com: 1958. El pobre d'esperit i els altres de Josep Maria de Sagarra 1958. La zorra y las uvas de Guilherme Figuereido 1958. La cinglera de la mort de Cecília A. Màntua 1958. Pulgarcito de Lluís Co

Expand and Contract

Image
6 $begingroup$ Take a positive integer $k$ as input. Start with $n := 1$ and repeatedly increase $n$ by the largest integer power of ten $i$ such that $i le n$ and $i + n le k$ . Repeat until $n = k$ and return a list of all intermediate values of $n$ , including both the initial $1$ and the final $k$ . During this process, growth will initially be limited by the former inequality, and only afterwards by the latter; the growth will take the form of an initial "expansion" period, during which $n$ is increased by ever-larger powers, followed by a "contract" period, during which $n$ is increased by ever-smaller powers in order to "zoom in" on the correct number. Test Cases 1 => [1] 10 => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] 321 => [1, 2, 3, 4, 5, 6, 7, 8, 9,