We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0af0041 commit 4c3eec6Copy full SHA for 4c3eec6
0442_Problem_1.bqn
@@ -0,0 +1,12 @@
1
+# For up to date code:
2
+# https://github.com/codereport/bqn-code/blob/main/leetcode/442-1.bqn
3
+
4
+# Link: https://leetcode.com/problems/maximum-containers-on-a-ship
5
6
+u ⇐ •Import "/home/cph/bqn-test/test.bqn"
7
8
+MaxContainers ← { 𝕊n‿w‿m: (m÷w)⌊טn }
9
10
+# Tests
11
+u.UnitTest (MaxContainers 2‿3‿15) ≡ 4
12
+u.UnitTest (MaxContainers 3‿5‿20) ≡ 4
0 commit comments