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

Commit 464417e

Browse files
fix(book/solutions): fix missing solutions
1 parent e2f4af0 commit 464417e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎book/D-interview-questions-solutions.asc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Algorithm:
9090

9191
[source, javascript]
9292
----
93-
include::interview-questions/buy-sell-stock.js[tag=description,solution]
93+
include::interview-questions/buy-sell-stock.js[tags=description;solution]
9494
----
9595

9696
The runtime is `O(n)` and the space complexity of `O(1)`.
@@ -125,7 +125,7 @@ Another case to take into consideration is that lists might have different lengt
125125

126126
[source, javascript]
127127
----
128-
include::interview-questions/merge-lists.js[tag=description,solution]
128+
include::interview-questions/merge-lists.js[tags=description;solution]
129129
----
130130

131131
Notice that we used a "dummy" node or "sentinel node" to have some starting point for the final list.
@@ -170,7 +170,7 @@ A better way to solve this problem is iterating over each character on both list
170170

171171
[source, javascript]
172172
----
173-
include::interview-questions/linkedlist-same-data.js[tag=description,solution]
173+
include::interview-questions/linkedlist-same-data.js[tags=description;solution]
174174
----
175175

176176
The function `findNextPointerIndex` is a helper to navigate each character on a linked list.
@@ -288,7 +288,7 @@ We are asked to keep track of the request's count only within a given time windo
288288

289289
[source, javascript]
290290
----
291-
include::interview-questions/recent-counter.js[tag=description,solution]
291+
include::interview-questions/recent-counter.js[tags=description;solution]
292292
----
293293

294294
Notice that we enqueue every request, and then we check all the ones that have "expire" and remove them from the queue.
@@ -320,7 +320,7 @@ This game is perfect to practice working with Queues. There are at least two opp
320320

321321
[source, javascript]
322322
----
323-
include::interview-questions/design-snake-game.js[tag=description,solution]
323+
include::interview-questions/design-snake-game.js[tags=description;solution]
324324
----
325325

326326
As you can see, we opted for using a set to trade speed for memory.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /