This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// backup1 | |
// encontre a palavra "Azul" | |
const grid = [ | |
["A", "B", "A", "C", "A", "T", "E", "A", "Z", "U", "L", "P", "E"], | |
["P", "P", "L", "U", "L", "A", "O", "Z", "Q", "E", "E", "F", "S"], | |
["D", "O", "T", "R", "E", "S", "K", "U", "W", "Q", "O", "M", "L"], | |
["R", "I", "O", "V", "A", "M", "P", "L", "T", "A", "D", "U", "A"], | |
["A", "D", "K", "A", "L", "S", "A", "O", "D", "S", "Z", "D", "Z"], | |
["Z", "D", "K", "S", "Z", "S", "A", "O", "D", "A", "K", "D", "U"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logo from "./logo.svg" | |
import "./App.css" | |
import { useState } from "react" | |
function App() { | |
const [listContents, setListContents] = useState([{ name: "test" }]) | |
const [inputContent, setInputContent] = useState("") | |
const handleAdd = () => { | |
setListContents([...listContents, { name: inputContent, checked: false }]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @ts-nocheck | |
const preços = [1, 12, 5, 111, 200, 1000, 10]; | |
const k = 50; | |
// // TODO | |
// function sortList(list) { | |
// let sortedList = []; | |
// for (let index = 0; index < list.length; index++) { | |
// const element = list[index]; |