data-struct 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5061a74197d99c6e371bcef1d8b0f2c7d14c8075
4
- data.tar.gz: 8b63a07ed7dcd06a2a390b1ffe7d8800ca4a2c8a
3
+ metadata.gz: e0825f87d7aa615c27e692a2df3b9f8f59e7a23a
4
+ data.tar.gz: dc64866c5ab7195e299c82fad9cf89fccf30aaa2
5
5
  SHA512:
6
- metadata.gz: 7494f81c1eead45e555f4213174c5618b1d1d8449d46685557cd4d4c34a92057dd79e1d07417a0920324cf9f3eb848da7028755b8ca07ae1f86a8e957440fc70
7
- data.tar.gz: e8fd26c9a28b9705aa9319a6e5683073abfc7e33135904825dba7c654b475e1c21431525b9618632629f18aefeabe4e3c483d9ac0ee059b924ed8d496ab01f48
6
+ metadata.gz: 29c48dc5468ea5fac4a337a46064af56d6b20f454021ae883b1c5e4012324f4b6bb902dd857dfd44f5db261f75d8c547682ae554657d5b82d890c4a7c2b8c952
7
+ data.tar.gz: 6c160a6be2b08d08bcc630ac43f671f70b5eebaeab511dd6a107310cb97a2653e1f53f67345ca662b4e6236c7955750500abe5f964df47b08c158b6347b9b717
data/lib/data-struct.rb CHANGED
@@ -2,8 +2,8 @@
2
2
  require_relative "doubly_linked_list"
3
3
  require_relative "dynamic_array"
4
4
  require_relative "max_stack"
5
- require_relative "min_max_stack"
6
- require_relative "min_max_queue"
5
+ # require_relative "min_max_stack"
6
+ # require_relative "min_max_queue"
7
7
  require_relative "singly_linked_list"
8
8
  require_relative "stack_queue"
9
9
 
@@ -24,7 +24,7 @@ class SingleLinkedList
24
24
 
25
25
  def shift
26
26
  first_link = @sentinel.next
27
- raise "cannot shift from empty list" if prev.nil?
27
+ raise "cannot shift from empty list" if first_link.nil?
28
28
  val = first_link.val
29
29
  @sentinel.next = first_link.next
30
30
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data-struct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Wang