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 urllib2 | |
import urllib | |
from bs4 import BeautifulSoup | |
user_agent = "Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome /7.0.517.41 Safari/534.7" | |
opener = urllib2.build_opener() | |
opener.addheaders = [('User-agent', user_agent)] | |
html = opener.open("http://www.google.com.br").read() | |
soup = BeautifulSoup(html) |
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
public class Fibonacci { | |
public static void main(String[] args) { | |
int posicaoNaSequencia = 10; | |
long iterativoCom3Variaveis = iterativoCom3Variaveis(posicaoNaSequencia); | |
long iterativoCom2Variaveis = iterativoCom2Variaveis(posicaoNaSequencia); | |
long excessoDeRecursao = excessoDeRecursao(posicaoNaSequencia); | |
BigInteger recursivo = recursivo(5043); | |