-
Esenciales 1.1 Repaso de Aritmética y Geometría (No vaya a ser que no se tienen ni las bases) 1.2 Álgebra 1.3 Probabilidad 1.4 Estadística 1.5 Matemáticas Discretas - básico
-
Para Gráficos 2.1 Geometría Analítica 2.2 Cálculo Diferencial
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
def twoSum(self, nums: List[int], target: int) -> List[int]: | |
past = {} | |
for i, e in enumerate(nums): | |
complement = target - e | |
j = past.get(complement, None) | |
if j is not None: | |
return [i, j] | |
past[e] = i |
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
// Ejercicio: | |
// Contesta las siguientes preguntas después de leer el código. | |
var nombre = "Snowden"; | |
(function(nombre){ | |
alert("El mejor filtrador es: " + nombre); // 1) ¿Qué resultado da? ¿Puedes explicarlo? | |
})("Assange"); // 2) ¿Cómo se llama esta forma de estructura programación? ¿Para qué sirve? | |
function filtrar(){ |
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
i = 1 | |
while i < 10 do | |
IO.puts i | |
i = i + 1 | |
end |
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
def fetchsamples(): | |
url = "https://stream.twitter.com/1/statuses/filter.json" | |
parameters = {'track' : 'nedvsarg'} | |
response = twitterreq(url, "POST", parameters) | |
try: | |
for line in response: | |
print line.strip() | |
except Exception: | |
fetchsamples() |
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
def getSubsets(conjunto): | |
subconjuntos=[] | |
set_size=len(conjunto) | |
if set_size>1: | |
subconjuntos+=getSubsets(conjunto[1:]) | |
elemento=[conjunto[0]] | |
for sub in subconjuntos[:]: | |
subconjuntos.append(sub+elemento) | |
subconjuntos.append(elemento) | |
else: |
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
<?php | |
$datos=<<<EOT | |
4 | |
Estimado presidente | |
Debemos platicar sobre esta situacion su pueblo esta muy hinchado | |
y no pensamos plantar mas bombas | |
queremos paz DE UNA VEZ LE DIGO Que haga lo que haga no seremos sus esclavoz | |
EOT; | |
$lineas=preg_split("/((\r?\n)|(\r\n?))/", $datos); |