Skip to content
Discussion options

You must be logged in to vote

@LPenny-github

你好 😊

(這次因為不是頭、尾,所以我還是用 first、second 命名,如果不適用,再麻煩大大指教 😅)

沒問題 😊


            int firstIndex = 0;
            int secondIndex = 1;
            int output = 1;

可以參考看看以下這樣的命名

  • firstIndex 換成 outputIndex
  • secondIndexsecond 可以換成 search, comparison, 或 inspection
  • output 換成 newLengthnewArrayLength

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LPenny-github
Comment options

Answer selected by LPenny-github
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants