File tree 2 files changed +5
-5
lines changed 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ In code, it looks something like this:
43
43
[ import:16-18, lang:"nim"] ( code/nim/bogo_sort.nim )
44
44
{% sample lang="ruby" %}
45
45
[ import:12-16, lang:"ruby"] ( code/ruby/bogo.rb )
46
- {% sample lang="processing " %}
46
+ {% sample lang="pde " %}
47
47
[ import:55-59, lang:"java"] ( code/processing/bogoSort.pde )
48
48
{% endmethod %}
49
49
@@ -87,7 +87,7 @@ We are done here!
87
87
[ import, lang:"nim"] ( code/nim/bogo_sort.nim )
88
88
{% sample lang="ruby" %}
89
89
[ import, lang:"ruby"] ( code/ruby/bogo.rb )
90
- {% sample lang="processing " %}
90
+ {% sample lang="pde " %}
91
91
[ import:1-53, lang:"java"] ( code/processing/bogoSort.pde )
92
92
{% endmethod %}
93
93
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ void setup() {
5
5
stroke (255 );
6
6
fill (0 );
7
7
8
- random_array (test_array,0 ,100 );
8
+ randomArray (test_array,0 ,100 );
9
9
}
10
10
11
11
void draw (){
@@ -25,7 +25,7 @@ void draw(){
25
25
}
26
26
27
27
28
- void random_array (int [] array , int min , int max ){
28
+ void randomArray (int [] array , int min , int max ){
29
29
for (int i= 0 ;i< array. length;i++ ){
30
30
array[i] = (int ) random (min,max);
31
31
}
@@ -52,7 +52,7 @@ Boolean isSorted(int[] array){
52
52
return true ;
53
53
}
54
54
55
- void bogo_Sort (int [] array ){
55
+ void bogoSort (int [] array ){
56
56
while (! isSorted(array)){
57
57
randomize(array);
58
58
}
You can’t perform that action at this time.
0 commit comments