Skip to content

feat: add solutions to lc problem: No.1386 - #5356

Merged
yanglbme merged 1 commit into
mainfrom
dev
Aug 19, 2026
Merged

feat: add solutions to lc problem: No.1386#5356
yanglbme merged 1 commit into
mainfrom
dev

Conversation

@yanglbme

Copy link
Copy Markdown
Member

No description provided.

Copilot AI lite review requested due to automatic review settings August 19, 2026 09:50
@yanglbme
yanglbme merged commit e88d1e7 into main Aug 19, 2026
8 checks passed
@yanglbme
yanglbme deleted the dev branch August 19, 2026 09:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds missing solutions for LeetCode #1386 (Cinema Seat Allocation) to this repository’s multi-language solution set, and documents them in both Chinese and English READMEs.

Changes:

  • Added a Rust implementation for #1386.
  • Added a C# implementation for #1386.
  • Updated README.md and README_EN.md to include Rust and C# solution snippets.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
solution/1300-1399/1386.Cinema Seat Allocation/Solution.rs New Rust solution implementation (bitmask + per-row aggregation).
solution/1300-1399/1386.Cinema Seat Allocation/Solution.cs New C# solution implementation (bitmask + per-row aggregation).
solution/1300-1399/1386.Cinema Seat Allocation/README.md Added Rust and C# code snippets to the Chinese README.
solution/1300-1399/1386.Cinema Seat Allocation/README_EN.md Added Rust and C# code snippets to the English README.
Suppressed comments (2)

solution/1300-1399/1386.Cinema Seat Allocation/README.md:262

  • using System; is unused in the C# snippet. Removing it keeps the example minimal and avoids copy/paste warnings in editors.
using System;
using System.Collections.Generic;

solution/1300-1399/1386.Cinema Seat Allocation/README_EN.md:260

  • using System; is unused in the C# snippet. Removing it keeps the example minimal and avoids copy/paste warnings in editors.
using System;
using System.Collections.Generic;

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +227 to +231
let row = e[0];
let col = e[1];
let mask = 1 << (10 - col);

d.entry(row)
for e in reserved_seats {
let row = e[0];
let col = e[1];
let mask = 1 << (10 - col);
Comment on lines +225 to +229
let row = e[0];
let col = e[1];
let mask = 1 << (10 - col);

d.entry(row)
@@ -0,0 +1,41 @@
using System;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants