Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4f3ced2

Browse files
committed
Make it work with NodeJS. Release 0.0.5.
1 parentb7d4666 commit4f3ced2

25 files changed

+121
-13
lines changed

‎coffee/PriorityQueue.coffee‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
define=require('amdefine')(module)if!define?
12
define [
23
'./PriorityQueue/AbstractPriorityQueue'
34
'./PriorityQueue/ArrayStrategy'

‎coffee/PriorityQueue/AbstractPriorityQueue.coffee‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
define=require('amdefine')(module)if!define?
12
define->
23
classAbstractPriorityQueue
34
constructor: (options)->

‎coffee/PriorityQueue/ArrayStrategy.coffee‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
define=require('amdefine')(module)if!define?
12
define->
23
binarySearchForIndexReversed= (array,value,comparator)->
34
low=0

‎coffee/PriorityQueue/BHeapStrategy.coffee‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Why a B-Heap and not a binary heap? A B-Heap improves memory locality. Since
77
# we often deal with subtrees, we want the data in subtrees to be close
88
# together. A binary tree is terrible at this.
9+
define=require('amdefine')(module)if!define?
910
define->
1011
classBHeapStrategy
1112
constructor: (options)->

‎coffee/PriorityQueue/BinaryHeapStrategy.coffee‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
define=require('amdefine')(module)if!define?
12
define->
23
classBinaryHeapStrategy
34
constructor: (options)->

‎index.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports=require('./js/PriorityQueue')

‎js/PriorityQueue.js‎

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎js/PriorityQueue.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎js/PriorityQueue/AbstractPriorityQueue.js‎

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎js/PriorityQueue/AbstractPriorityQueue.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp