Skip to content

nguyenvukhang/aquarium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aquarium Solver

Problem Set Source

To obtain sample problems, use the https://aquarium2.vercel.app/api/get API endpoint.

https://aquarium2.vercel.app/api/get?id=MDo4LDM0MCw5OTA=

The response will take this shape:

{
  "id": "MDo2LDA3MCw1NzI=",
  "size": 6,
  "sums": {
    "cols": [2, 4, 5, 5, 4, 2],
    "rows": [4, 3, 4, 4, 2, 5]
  },
  "matrix": [
    [1, 2, 2, 2, 2, 3],
    [1, 1, 2, 4, 2, 3],
    [1, 2, 2, 4, 4, 3],
    [1, 2, 2, 2, 2, 3],
    [1, 5, 5, 5, 6, 3],
    [1, 1, 1, 5, 6, 3]
  ]
}

As specified in the API endpoint