Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ Profile on LeetCode: [fartem](https://leetcode.com/fartem/).
| 590. N-ary Tree Postorder Traversal | [Link](https://leetcode.com/problems/n-ary-tree-postorder-traversal/) | [Link](./lib/easy/590_n_ary_tree_postorder_traversal.rb) | [Link](./test/easy/test_590_n_ary_tree_postorder_traversal.rb) |
| 594. Longest Harmonious Subsequence | [Link](https://leetcode.com/problems/longest-harmonious-subsequence/) | [Link](./lib/easy/594_longest_harmonious_subsequence.rb) | [Link](./test/easy/test_594_longest_harmonious_subsequence.rb) |
| 599. Minimum Index Sum of Two Lists | [Link](https://leetcode.com/problems/minimum-index-sum-of-two-lists/) | [Link](./lib/easy/599_minimum_index_sum_of_two_lists.rb) | [Link](./test/easy/test_599_minimum_index_sum_of_two_lists.rb) |
| 606. Construct String from Binary Tree | [Link](https://leetcode.com/problems/construct-string-from-binary-tree/) | [Link](./lib/easy/606_construct_string_from_binary_tree.rb) | [Link](./test/easy/test_606_construct_string_from_binary_tree.rb) |
| 617. Merge Two Binary Trees | [Link](https://leetcode.com/problems/merge-two-binary-trees/) | [Link](./lib/easy/617_merge_two_binary_trees.rb) | [Link](./test/easy/test_617_merge_two_binary_trees.rb) |
| 628. Maximum Product of Three Numbers | [Link](https://leetcode.com/problems/maximum-product-of-three-numbers/) | [Link](./lib/easy/628_maximum_product_of_three_numbers.rb) | [Link](./test/easy/test_628_maximum_product_of_three_numbers.rb) |
| 637. Average of Levels in Binary Tree | [Link](https://leetcode.com/problems/average-of-levels-in-binary-tree/) | [Link](./lib/easy/637_average_of_levels_in_binary_tree.rb) | [Link](./test/easy/test_637_average_of_levels_in_binary_tree.rb) |
Expand Down Expand Up @@ -595,3 +594,4 @@ Profile on LeetCode: [fartem](https://leetcode.com/fartem/).
| 556. Next Greater Element III | [Link](https://leetcode.com/problems/next-greater-element-iii/) | [Link](./lib/medium/556_next_greater_element_iii.rb) | [Link](./test/medium/test_556_next_greater_element_iii.rb) |
| 560. Subarray Sum Equals K | [Link](https://leetcode.com/problems/subarray-sum-equals-k/) | [Link](./lib/medium/560_subarray_sum_equals_k.rb) | [Link](./test/medium/test_560_subarray_sum_equals_k.rb) |
| 581. Shortest Unsorted Continuous Subarray | [Link](https://leetcode.com/problems/shortest-unsorted-continuous-subarray/) | [Link](./lib/medium/581_shortest_unsorted_continuous_subarray.rb) | [Link](./test/medium/test_581_shortest_unsorted_continuous_subarray.rb) |
| 606. Construct String from Binary Tree | [Link](https://leetcode.com/problems/construct-string-from-binary-tree/) | [Link](./lib/medium/606_construct_string_from_binary_tree.rb) | [Link](./test/medium/test_606_construct_string_from_binary_tree.rb) |
2 changes: 1 addition & 1 deletion leetcode-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require 'English'
::Gem::Specification.new do |s|
s.required_ruby_version = '>= 3.0'
s.name = 'leetcode-ruby'
s.version = '7.2.9'
s.version = '7.3.0'
s.license = 'MIT'
s.files = ::Dir['lib/**/*.rb'] + %w[README.md]
s.executable = 'leetcode-ruby'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ def tree2str(root)
result.join
end

private

# @param {TreeNode} node
# @param {String[]} str
def tree_to_str(node, str)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require_relative '../test_helper'
require_relative '../../lib/common/binary_tree'
require_relative '../../lib/easy/606_construct_string_from_binary_tree'
require_relative '../../lib/medium/606_construct_string_from_binary_tree'
require 'minitest/autorun'

class ConstructStringFromBinaryTreeTest < ::Minitest::Test
Expand Down
Loading