Skip to content
Snippets Groups Projects
Commit 5f9ada1d authored by Brady James Garvin's avatar Brady James Garvin
Browse files

Added one more element to illustrate a deletion at the end.

parent 38ca0fec
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ import { deleteToSort } from './sortingByDeletion.js';
const SYNTAX_ERROR = 'Please enter a comma-separated list of numbers.';
export function Ascent() {
const [input, setInput] = useState('30, 10, 60, 20, 40, 50');
const [input, setInput] = useState('30, 10, 60, 20, 40, 50, 0');
const onInputChange = (event) => setInput(event.target.value);
const list = input.split(',').map((value) => value.trim()).filter((value) => value.length > 0).map(Number);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment