aboutsummaryrefslogtreecommitdiff
path: root/racket/leetcode/lc-1460-make-two-arrays-equal.rkt
blob: 584ac977cd1c9ab438c9964c3082f204290b8e5a (plain)
1
2
3
4
#lang racket
(define/contract (can-be-equal target arr)
  (-> (listof exact-integer?) (listof exact-integer?) boolean?)
  (equal? (sort target <) (sort arr <)))