From 67d86cfb4dc0984df372517e5bb51336e4bfb223 Mon Sep 17 00:00:00 2001 From: MANISH-GIRI Date: Thu, 30 Mar 2017 22:02:52 -0400 Subject: [PATCH] Add description about front() in Priority Queue --- .../coding-interview-data-structure-questions.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-data-structure-questions.json b/seed/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-data-structure-questions.json index f275c7f0da..0e3d93ec33 100644 --- a/seed/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-data-structure-questions.json +++ b/seed/challenges/08-coding-interview-questions-and-take-home-assignments/coding-interview-data-structure-questions.json @@ -161,7 +161,7 @@ "[[’kitten’, 2], [‘dog’, 2], [‘rabbit’, 2]]", "Here the second value (an integer) represents item priority. If we enqueue [‘human’, 1] with a priority of 1 (assuming lower priorities are given precedence) it would then be the first item to be dequeued. The collection would like this:", "[[‘human’, 1], [’kitten’, 2], [‘dog’, 2], [‘rabbit’, 2]].", - "We’ve started writing a PriorityQueue in the code editor. You will need to add an enqueue method for adding items with a priority, a dequeue method for removing items, a size method to return the number of items in the queue, and finally an isEmpty method that will return true if the queue is empty or false if it is not.", + "We’ve started writing a PriorityQueue in the code editor. You will need to add an enqueue method for adding items with a priority, a dequeue method for removing items, a size method to return the number of items in the queue, a front method to return the element at the front of the queue, and finally an isEmpty method that will return true if the queue is empty or false if it is not.", "The enqueue should accept items with the format shown above (['human', 1]) where 1 represents the priority. The dequeue should return only the current item, not its priority." ], "challengeSeed": [