chore(i18n,learn): processed translations (#45454)

This commit is contained in:
camperbot
2022-03-18 12:54:52 +05:30
committed by GitHub
parent 2df1a3235f
commit f20e8f4860
2 changed files with 19 additions and 22 deletions

View File

@ -1,6 +1,6 @@
---
id: 587d8259367417b2b2512c85
title: Implement Selection Sort
title: Implementar la Ordenación de la selección
challengeType: 1
forumTopicId: 301616
dashedName: implement-selection-sort
@ -8,19 +8,19 @@ dashedName: implement-selection-sort
# --description--
Here we will implement selection sort. Selection sort works by selecting the minimum value in a list and swapping it with the first value in the list. It then starts at the second position, selects the smallest value in the remaining list, and swaps it with the second element. It continues iterating through the list and swapping elements until it reaches the end of the list. Now the list is sorted. Selection sort has quadratic time complexity in all cases.
Aquí implementaremos la ordenación por selección. La ordenación por selección funciona seleccionando el valor mínimo de una lista e intercambiándolo con el primer valor de la misma. Después pasa a la segunda posición, busca y selecciona el valor más pequeño en los elementos restantes de la lista y lo mueve a la segunda posición. Continua realizando iteraciones en la lista y moviendo los elementos hasta que se llega a la última posición de la lista. Ahora la lista está ordenada. La ordenación por selección tiene una complejidad temporal cuadrática en todos los casos.
**Instructions**: Write a function `selectionSort` which takes an array of integers as input and returns an array of these integers in sorted order from least to greatest.
**Instrucciones:** Escribe una funcn `selectionSort` que toma un "arreglo" de enteros como entrada y devuelve un arreglo de estos enteros ordenados de menor a mayor.
# --hints--
`selectionSort` should be a function.
`selectionSort` debería ser una funcn.
```js
assert(typeof selectionSort == 'function');
```
`selectionSort` should return a sorted array (least to greatest).
`selectionSort` debería devolver un arreglo ordenado (de menor a mayor).
```js
assert(
@ -48,7 +48,7 @@ assert(
);
```
`selectionSort` should return an array that is unchanged except for order.
`selectionSort([1,4,2,8,345,123,43,32,5643,63,123,43,2,55,1,234,92])` debe devolver un arreglo sin cambios excepto por el orden.
```js
assert.sameMembers(
@ -75,7 +75,7 @@ assert.sameMembers(
);
```
`selectionSort` should not use the built-in `.sort()` method.
`selectionSort` no debe utilizar el método incorporado `.sort()`.
```js
assert(isBuiltInSortUsed());
@ -109,9 +109,6 @@ function selectionSort(array) {
return array;
// Only change code above this line
}
selectionSort([1, 4, 2, 8, 345, 123, 43, 32, 5643, 63, 123, 43, 2, 55, 1, 234, 92]);
```
# --solutions--

View File

@ -1,6 +1,6 @@
---
id: 5a5d02bd919fcf9ca8cf46cb
title: Build a Light-Bright App
title: Construye una aplicación Light-Bright
challengeType: 3
forumTopicId: 302350
dashedName: build-a-light-bright-app
@ -8,27 +8,27 @@ dashedName: build-a-light-bright-app
# --description--
**Objective:** Build a [CodePen.io](https://codepen.io) app that is functionally similar to this: <https://codepen.io/freeCodeCamp/full/eyLYXE>.
**Objetivo:** Construye una aplicación en [CodePen.io](https://codepen.io) que funcionalmente sea similar a esta: <https://codepen.io/freeCodeCamp/full/eyLYXE>.
**Rule #1:** Don't look at the example project's code. Figure it out for yourself.
**Regla #1:** No mires el código del proyecto de ejemplo. Encuentra tu propia solución.
**Rule #2:** Fulfill the below [user stories](https://en.wikipedia.org/wiki/User_story). Use whichever libraries or APIs you need. Give it your own personal style.
**Regla #2:** Completa las siguientes [historias de usuario](https://es.wikipedia.org/wiki/Historias_de_usuario) y consigue que todas las pruebas sean aprobadas. Utilice las librerías o APIs que necesites. Dale tu propio estilo personal.
**User Story:** I can click or drag the mouse cursor to color the circles.
**Historia del usuario:** Puedo hacer clic o arrastrar el cursor del ratón para colorear los círculos.
**User Story:** I can double-click on a colored circle to remove the color.
**Historia del usuario:** Puedo hacer doble clic en un círculo de color para eliminar el color.
**User Story:** I can click on a colored circle to change its color.
**Historia del usuario:** Puedo hacer doble clic en un círculo de color para eliminar el color.
**User Story:** I should get a circle of different color on each click.
**Historia del usuario:** Debería obtener un círculo de diferente color en cada clic.
**User Story:** I can click on the 'Reset' button to remove the recent color.
**Historia del usuario:** Puedo hacer clic en el botón 'Reiniciar' para eliminar el color reciente.
**User Story:** I can click on the 'Reset All' button to remove all the colors from the circles.
**Historia del usuario:** Puedo hacer clic en el botón 'Restablecer todo' para eliminar todos los colores de los círculos.
When you are finished, include a link to your project on CodePen and click the "I've completed this challenge" button.
Cuando hayas terminado, incluye un enlace a tu proyecto en CodePen y haz clic en el botón "He completado este desafío".
You can get feedback on your project by sharing it on the [freeCodeCamp forum](https://forum.freecodecamp.org/c/project-feedback/409).
Puedes obtener comentarios sobre tu proyecto compartiéndolo en el [foro de freeCodeCamp](https://forum.freecodecamp.org/c/project-feedback/409).
# --solutions--