Skip to content

Commit 0975add

Browse files
author
0x01f7
committed
style: comment
1 parent addc5a1 commit 0975add

4 files changed

+26
-11
lines changed

algorithms/evaluate_reverse_polish_notation.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# https://leetcode.com/problems/evaluate-reverse-polish-notation/
22
#
3-
# Evaluate the value of an arithmetic expression in Reverse Polish
4-
# Notation. Valid operators are +, -, *, /. Each operand may be
5-
# an integer or another expression.
3+
# Evaluate the value of an arithmetic expression in Reverse Polish Notation.
4+
# Valid operators are +, -, *, /. Each operand may be an integer or another
5+
# expression.
66
#
77
# Some examples:
88
#
9-
# ["2", "1", "+", "3", "*"] -> ((2 + 1) * 3) -> 9
9+
# ["2", "1", "+", "3", "*"] -> ((2 + 1) * 3) -> 9
1010
# ["4", "13", "5", "/", "+"] -> (4 + (13 / 5)) -> 6
1111

1212

algorithms/excel_sheet_column_number.rb

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# https://leetcode.com/problems/excel-sheet-column-number/
22
#
3-
# Given a column title as appear in an Excel sheet, return its
4-
# corresponding column number.
3+
# Given a column title as appear in an Excel sheet, return its corresponding
4+
# column number.
55
#
66
# For example:
77
#
@@ -12,6 +12,11 @@
1212
# Z -> 26
1313
# AA -> 27
1414
# AB -> 28
15+
#
16+
# Credits:
17+
#
18+
# Special thanks to @ts for adding this problem and creating all test
19+
# cases.
1520

1621

1722
# @param {String} s

algorithms/excel_sheet_column_title.rb

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# https://leetcode.com/problems/excel-sheet-column-title/
22
#
3-
# Given a positive integer, return its corresponding column title
4-
# as appear in an Excel sheet.
3+
# Given a positive integer, return its corresponding column title as appear in
4+
# an Excel sheet.
55
#
66
# For example:
77
#
@@ -12,6 +12,11 @@
1212
# Z -> 26
1313
# AA -> 27
1414
# AB -> 28
15+
#
16+
# Credits:
17+
#
18+
# Special thanks to @ifanchu for adding this problem and creating all
19+
# test cases.
1520

1621

1722
# @param {Integer} n

algorithms/expression_add_operators.rb

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# https://leetcode.com/problems/expression-add-operators/
22
#
3-
# Given a string that contains only digits 0-9 and a target value, return
4-
# all possibilities to add binary operators (not unary) +, -, or * between
5-
# the digits so they evaluate to the target value.
3+
# Given a string that contains only digits 0-9 and a target value, return all
4+
# possibilities to add binary operators (not unary) +, -, or * between the
5+
# digits so they evaluate to the target value.
66
#
77
# Examples:
88
#
@@ -11,6 +11,11 @@
1111
# "105", 5 -> ["1*0+5","10-5"]
1212
# "00" , 0 -> ["0+0", "0-0", "0*0"]
1313
# "3456237490", 9191 -> []
14+
#
15+
# Credits:
16+
#
17+
# Special thanks to @davidtan1890 for adding this problem and creating
18+
# all test cases.
1419

1520

1621
# @param {String} num

0 commit comments

Comments
 (0)