Skip to content

🟢 Port problem 1920 (Build Array from Permutation) from Swift to C++23 - #23

Open
AF2B wants to merge 2 commits into
chore/cpp23-migrationfrom
feat/cpp-1920-build-array-from-permutation
Open

AF2B wants to merge 2 commits into
chore/cpp23-migrationfrom
feat/cpp-1920-build-array-from-permutation

Conversation

@AF2B

@AF2B AF2B commented Sep 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • Converts swift/1930.swift to C++23 at solutions/1901-2000/1920-build-array-from-permutation/.
  • The file was misnamed: its logic (buildArray(nums) => nums[nums[i]]) is LeetCode 1920 "Build Array from Permutation", not 1930 ("Unique Length-3 Palindromic Subsequences", an unrelated problem). Filed under the number that actually matches the algorithm.
  • Removes the now-converted swift/1930.swift.

Base is chore/cpp23-migration (#4) — retarget to main once that lands.

Test plan

  • Verified locally with a standalone compile + assertions.
  • CI (build & test, static analysis, format check) passes.

Replaces swift/1930.swift with
solutions/1901-2000/1920-build-array-from-permutation/.

The file was misnamed: its buildArray(nums) => nums[nums[i]] logic is
LeetCode 1920 "Build Array from Permutation", not 1930 ("Unique
Length-3 Palindromic Subsequences", an unrelated problem). Filed under
the number that matches the actual algorithm.
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