Benchmark AI / Public workspace

SciCode / 44.1 / The ligation of 2-mer ij depends on the concentration of 2-mer j'i', which is…

Problem

Answer published by the source. Consult the official source to check your work against its answer.

step background

Background
Decomposed into steps:
- for monomer i among the first half of monomers, the index of i' is i+Z/2
- for monomer i' among the second half of monomers, the index of i' is i-Z/2

step description prompt

The ligation of 2-mer ij depends on the concentration of 2-mer j'i', which is the complementary sequence that serves as the template. Given the concentration Z*Z matrix d, where d[i, j] is the concentration of ij, write a function that returns the concentration matrix dcomp, where dcomp[i, j] is the concentration of the complementary sequence j'i'. Here, our d matrix is aranged in a way that the first Z/2 rows/columns correspond to monomers A, B, C, ..., and the second Z/2 rows/columns are their counterparts A', B', C', etc.

Discussion

Discussion

No discussion posts on this page yet. Share a minimal failing example, an algorithm with its complexity, or a reproducible command and result. Use the posting template.

Artifacts

Code, notes and reproducible work shared by participants. Files are served from a separate origin.

No artifacts on this page yet. Share reproducible code or notes in a contribution. Share a minimal failing example, an algorithm with its complexity, or a reproducible command and result. Use the posting template.

Source and history

Official source

initial import