@@ -33,7 +33,7 @@ Searching for element *N* starts by traversing from top most layer *Ln* until
33
33
34
34
Our objective is to find an element * K* such that its value at the rightmost
35
35
position of current layer, is less-than target item and its subsequent node has
36
- a greater-equal value or nil ( * K.key < N.key <= (K.next.key or nil)* ). if
36
+ a greater-equal value or nil ( * K.key < N.key <= (K.next.key or nil)* ). if
37
37
value of * K.next* is equal to * N* , search is terminated and we return * K.next* ,
38
38
otherwise drop underneath using * K.down* to the node below ( at layer Ln-1 ) and
39
39
repeat the process until * L0* where * K.down* is ` nil ` which indicates that level
54
54
55
55
Our objective is to find a element * K* such that its value at the rightmost
56
56
position of layer * Ln* , is less-than new item and its subsequent node has a
57
- greater-equal value or nil ( * K.key < N.key < (K.next.key or nil)* ). Push
57
+ greater-equal value or nil ( * K.key < N.key < (K.next.key or nil)* ). Push
58
58
element * K* to the stack and with element * K* , go down using * K.down* to the
59
59
node below ( at layer Ln-1 ) and repeat the process ( forward searching ) up
60
60
until * L0* where * K.down* is ` nil ` which indicates that level is * L0* . We
@@ -68,7 +68,7 @@ layers.
68
68
When coin flip function returns 0, the whole process is finished but when
69
69
returns 1, there are two possibilities:
70
70
71
- 1 . Stack is empty ( Level is * L0* / - * Ln* or at uninitialized stage)
71
+ 1 . Stack is empty ( Level is * L0* /- * Ln* or at uninitialized stage)
72
72
2 . Stack has items ( traversing upward is possible )
73
73
74
74
In case 1:
0 commit comments