Shohei Yoshida
Shohei Yoshida's Blog

Shohei Yoshida's Blog

LeetCode 1662. Check If Two String Arrays are Equivalent in F#

Shohei Yoshida's photo
Shohei Yoshida
·Oct 25, 2022·

1 min read

URL

leetcode.com/problems/check-if-two-string-a..

Code

github.com/syohex/dotnet-study/blob/master/..

let arrayStringsAreEqual (word1: string list) (word2: string list) : bool =
    let w1 = word1 |> System.String.Concat
    let w2 = word2 |> System.String.Concat
    w1 = w2
 
Share this