Archivo mensual: enero 2020

Count and Say


/*Lets write an algorithm that, given an initial value, will produce the next ‘count and say’ sequence: 1, 11, 21, 1211, 111221, 312211, 13112221, 1113213211, … */ public class CountAndSay{ public static void main(String[] args){ System.out.println(“Count and Say algorithm”); System.out.println(“next … Seguir leyendo

Publicado en Uncategorized | Etiquetado , | Deja un comentario

Listen on a port/Send data to a port


Listening with nc: nc -l 8089 Checking that 8089 port is listening: netstat -nap|grep 8089 (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp 0 … Seguir leyendo

Publicado en Uncategorized | Etiquetado , | Deja un comentario