summaryrefslogtreecommitdiff
path: root/data_structures/BOUNCE.js
diff options
context:
space:
mode:
Diffstat (limited to 'data_structures/BOUNCE.js')
-rw-r--r--data_structures/BOUNCE.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/data_structures/BOUNCE.js b/data_structures/BOUNCE.js
new file mode 100644
index 0000000..fd447db
--- /dev/null
+++ b/data_structures/BOUNCE.js
@@ -0,0 +1,16 @@
+function BOUNCE () {
+
+
+ var n = 2;
+
+ var k = 1],[ipar=[];
+
+ var for i = 1:n;
+
+ var for j = i+1:n;
+
+ var ipar(k) = i;
+ k=k+1;
+ ipar(k)=j;
+ k=k+1;
+}