From 136e20f3a20ef27f1a4ad89406b42580d3638683 Mon Sep 17 00:00:00 2001 From: Beau Carnes Date: Mon, 10 Jul 2017 21:25:26 -0400 Subject: [PATCH] fix typo on challenge (#15621) --- .../coding-interview-data-structure-questions.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 f275c7f0da9..d228fc29fb9 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 @@ -2614,9 +2614,9 @@ "
Node1: Node2, Node3
Node2: Node1
Node3: Node1
", "Above is an undirected graph because Node1 is connected to Node2 and Node3, and that information is consistent with the connections Node2 and Node3 show. An adjacency list for a directed graph would mean each row of the list shows direction. If the above was directed, then Node2: Node1 would mean there the directed edge is pointing from Node2 towards Node1.", "We can represent the undirected graph above as an adjacency list by putting it within a JavaScript object.", - "
var undirectedG = {
Node1: [\"Node2\", \"Node3\"],
Node2: [\"Node1\"],
Node3: [\"Node3\"]
};
", + "
var undirectedG = {
Node1: [\"Node2\", \"Node3\"],
Node2: [\"Node1\"],
Node3: [\"Node1\"]
};
", "This can also be more simply represented as an array where the nodes just have numbers rather than string labels.", - "
var undirectedGArr = [
[1, 2], # Node1
[0], # Node2
[2] # Node3
];
", + "
var undirectedGArr = [
[1, 2], # Node1
[0], # Node2
[0] # Node3
];
", "
", "Create a social network as an undirected graph with 4 nodes/people named James, Jill, Jenny, and Jeff. There are edges/relationships between James and Jeff, Jill and Jenny, and Jeff and Jenny." ],