Skip to content

Commit b9c4fd2

Browse files
committed
✨ lc 427-1
1 parent 21a492f commit b9c4fd2

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

0427_Problem_1.bqn

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# For up to date code:
2+
# https://github.com/codereport/bqn-code/blob/main/leetcode/427-1.bqn
3+
4+
# Link: https://leetcode.com/problems/transformed-array
5+
6+
u•Import "/home/cph/bqn-test/test.bqn"
7+
8+
ConstructTransformedArray ← {𝕩˜(𝕩)|𝕩+↕≠𝕩} # Explicit
9+
ConstructTransformedArray2 ← (≠|↕+) # Tacit
10+
11+
# Tests
12+
u.UnitTest (ConstructTransformedArray 3¯211) 1113
13+
u.UnitTest (ConstructTransformedArray ¯14¯1) ¯1¯14
14+
u.UnitTest (ConstructTransformedArray2 3¯211) 1113
15+
u.UnitTest (ConstructTransformedArray2 ¯14¯1) ¯1¯14

0 commit comments

Comments
 (0)