Closed

Simple JavaScript data structure JSAN, java script, JSunit

This project received 4 bids from talented freelancers with an average bid price of $133 USD.

Get free quotes for a project like this
Employer working
Skills Required
Project Budget
N/A
Total Bids
4
Project Description

JavaScript implement Simple data structure , JSAN and JSunit Test

Simple data structure like stack, queue etc.. and its methods in JavaScript

Implement following basic data structures as library in javascript.
The data structure implement should be compliant format to JSAN ([url removed, login to view])

1. Stack
Implement Methods: push, pop, peek, empty, clear, search, size
Refer: for [url removed, login to view] javadoc for more detailed information

2. Queue
Implement Methods: Peek, Poll, odder, element , remove
Refer: [url removed, login to view] javadoc for more information

3. PriorityQueue
- Use same as Queue
- Create a constructor that take a comparator function which orders the elements appropriately as per the value in the queue.
Refer: [url removed, login to view] javadoc for more information

4. Doubly Linked List
Implement Methods: add(object), clear, getFirst(), getLast(), remove( value), removeLast(), removeFist(), offer, insertAfter(object)
Refer: [url removed, login to view] javadoc for more information

5. Map
- Maps (ordered Binary Tree)
Method: insert(element), inorder, preorder, postorder, remove(element), haselement(element), clear(), size()

6. Set
Methods: add, contains, remove, size, clear, intersect, union, difference
Refer: [url removed, login to view] javadoc for more information

Once the above is implementing, just write JSunit Test case for each method
The JSUnit Test Case should have at least

1. One positive test case for each method.
2. One negative test case for each method.

If there are any queries or question, please feel free to contact me directly. A good java script worker can finish the above job in not more than one day. I am flexible with time period. This exercise is just a test since; we are looking for worker on big project that we can [url removed, login to view] can also integrate the HTML with Javascript.

For reference [url removed, login to view]
[url removed, login to view]

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online