mirror of
https://github.com/krahets/hello-algo.git
synced 2026-09-02 13:17:14 +00:00
Fix multilingual content typos (#1958)
This commit is contained in:
@@ -4,6 +4,8 @@ Created Time: 2024-05-22
|
||||
Author: Xuan Khoa Tu Nguyen (ngxktuzkai2000@gmail.com)
|
||||
=end
|
||||
|
||||
require 'set'
|
||||
|
||||
### バックトラッキング法:全順列 II ###
|
||||
def backtrack(state, choices, selected, res)
|
||||
# 状態の長さが要素数に等しければ、解を記録
|
||||
|
||||
@@ -39,7 +39,7 @@ def binary_search_insertion(nums, target)
|
||||
elsif nums[m] > target
|
||||
j = m - 1 # target は区間 [i, m-1] にある
|
||||
else
|
||||
j = m - 1 # target より小さい最初の要素は区間 [i, m-1] にある
|
||||
j = m - 1 # target より小さい最も右の要素は区間 [i, m-1] にある
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user