Skip to content

Commit b0a7280

Browse files
committed
🎉 feat: initial commit for leetcode 35 using Swift
1 parent 1f71774 commit b0a7280

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// 35. Search Insert Position
2+
// 16 ms, 52.88%
3+
return nums.map({$0 - target}).filter({$0 < 0}).count

0 commit comments

Comments
 (0)