style="font-size: 18px; padding: 15px 30px; font-weight: bold; color: #ffffff; display: inline-block; text-decoration: none; line-height: 1.6; border-radius: 4px;background-color: #b8845e;" /**
* @param {number[][]} grid
* @return {number}
*/
var maximumScore = function(grid) {
const n = grid.length;
// prefix[col][r] = sum of grid[0..r-1][col], size n x (n+1)
const prefix = Array.from({ length: n }, () => Array(n + 1).fill(0));
for (let j = 0; j < n; ++j) {
for (let i = 0; i < n; ++i) {
prefix[j][i + 1] = prefix[j][i] + grid[i][j];
}
}
// prevPick[h], prevSkip[h] for heights h in [0..n]
// Start with column 0 "virtual" s# React Documentation (react.dev)
React is a JavaScript library for building user interfaces. It lets you build UI from reusable pieces called components and manage how data flows through your application with state and props. React components are JavaScript functions that return markup (JSX), enabling a declarative approach to building interactive web applications.
This repository contains the source code and documentation for react.dev, the official React documentation website. Built with Neconst fab: "Fab" = "Fab";# Practice-First Agent Rule
## Purpose
This repository is for **learning, practice, experiments, katas, and skill-building**.
When I ask questions in this repository, assume my goal is to **learn by thinking and solving problems myself**, not to get the full solution immediately.
## Instructions for the agent
- Treat my questions as **practice-oriented by default**.
- Do **not** give full answers, full implementations, or code snippets **unless I explicitly ask for them**.
- Do **not** solvfullstack agentic JavaScript engineer who is world famous for being able to
take extreamly diffuclut tasks and breaking them down for everoyone to
understand. your talks at conferences sell out,fast, when you write your blog
post the site that host it goes down. then you go and engineer a the
uncrashable supder duper optimised,the weve goUltra-high-resolution 4K enhancement based strictly on the provided reference image. Absolute fidelity to original facial anatomy, proportions, and identity. Preserve expression, gaze, pose, camera angle, framing, and perspective with zero deviation. Clothing, hair, skin, and background elements must remain unchanged in structure, placement, and design.
Recover fine-grain detail with natural realism. Enhance pores, fine lines, hair strands, eyelashes, fabric weave, seams, and material edges witDownload records via XML
Save as, e.g. to Downloads
This PC -> C on SKB57052 _> Users -> S8ZM6E -> DownloadsYes. Git lets you cherry-pick multiple commits in several ways.
### Cherry-pick specific commits
```bash
git cherry-pick <commit1> <commit2> <commit3>
```
Example:
```bash
git cherry-pick a1b2c3 d4e5f6 789abcd
```
Git applies them in the order you provide.
---
### Cherry-pick a range of commits
You can cherry-pick consecutive commits using a range:
```bash
git cherry-pick <start_commit>^..<end_commit>
```
Example:
```bash
git cherry-pick a1b2c3^..d4e5f6
```
That includes:
* `a1b2c3`# Fiche ponctuelle — Rebase + merge fast-forward (workflow git linéaire)
**Contexte de capture :** session memory-grep, Phase 1a (intégration de la feature branch sur main), 2026-04-28.
Question utilisateur : explication pédagogique du rebase, du merge fast-forward, et du combo `rebase + --ff-only` figé dans le CLAUDE.md projet.
---
## TL;DR
| Opération | Effet |
|-----------|-------|
| **Merge 3-way** (`git merge`) | Crée un commit de merge avec 2 parents. Historique non-linéaire. |
| **Fas# Fiche ponctuelle — La terminologie "smoke test"
**Contexte de capture :** session memory-grep, Phase 1a (smoke test pytest), 2026-04-28.
Question utilisateur : explication précise de la terminologie "smoke test" et de ses nuances avec les autres types de tests.
---
## TL;DR
Un **smoke test** est un test minimal qui vérifie qu'un système nouvellement assemblé "ne prend pas feu" au premier lancement.
- **Origine** : ingénierie matérielle (électronique, plomberie, chaudières)
- **Logiciel** private void addMove(List<int[]> validMoves, int row, int col) {
try {
if (cellValues[row][col] == "") {
if (row >= 0 && row < BOARDSIZE && col >= 0 && col < BOARDSIZE) {
validMoves.add(new int[]{row, col});
validMovesCells[row][col] = "1";
Log.d(TAG, "addMove: [" + row + ":" + col + "]");
}
}
}
catch(Exception e)
{
Log.d(TA private void getValidMoves(int row,
int col,
PieceType pieceType,
PlayerColor turn) {
validMoves = new ArrayList<>();
int direction = (turn == PlayerColor.RED) ? 1 : -1;
if(pieceType == PieceType.REGULAR)
{
addMove(validMoves, row + direction, col-1);
addMove(validMoves, row + direction, col+1);
// Handle jumped a piece
private void setValidMoves(PlayerColor turn) {
try{
validMovesCells = new String[BOARDSIZE][BOARDSIZE];
getValidMoves(highlightedRow, highlightedCol, PieceType.REGULAR, turn);
}
catch(Exception e)
{
Log.e(TAG, "setValidMoves: " + e.getMessage());
}
} public String hitTest(Point point,
PlayerColor turn,
Context context) {
String result = "-1";
for (int row = 0; row < cells[0].length; row++)
{
for (int col = 0; col < cells[1].length; col++)
{
highlights[row][col] = "0";
if(cellValues[row][col] == "")
{
//Log.d(TAG, "hitTest: Empty at [" + row + "," + col + "]");
private void drawTurn(Canvas canvas, Rect rect, int color) {
Paint paint = new Paint();
paint.setColor(color);
paint.setStyle(Paint.Style.FILL_AND_STROKE);
int x = rect.centerX();
int y = rect.centerY();
canvas.drawCircle(x, y, SIZE * .35f, paint);
}