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
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' |
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
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); |
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
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); |