Skip to content

Instantly share code, notes, and snippets.

View Tekaichi's full-sized avatar
🎯
On target

Miguel Cardoso Tekaichi

🎯
On target
View GitHub Profile
from random import random
from bokeh.layouts import column
from bokeh.models import Button
from bokeh.palettes import RdYlBu3
from bokeh.plotting import figure, curdoc
# create a plot and style its properties
p = figure(x_range=(0, 100), y_range=(0, 100), toolbar_location=None)
p.border_fill_color = 'black'
@Tekaichi
Tekaichi / .java
Created October 26, 2017 16:17
RECURSIVE EXERCICIOS
private static void recSeparate(int[] v, int i, List<Integer> list, int threshold) {
if(i == v.length){
return;
}
if(v[i] < threshold){
recSeparate(v,i+1,list,threshold);
@Tekaichi
Tekaichi / .java
Created October 26, 2017 16:03
Recursive thingy
private static int recSeparate(int[] v, int i, List<Integer> list, int threshold) {
if(i == v.length){
return 0;
}
if(v[i] < threshold){
int a = recSeparate(v,i+1,list,threshold);