---
title: "Discussion on \"Leetcode 1929. Concatenation of Array\" | Hashnode"
description: "Discussion on \"Leetcode 1929. Concatenation of Array\". Intuition\nLoop through input array and fill answer array in one pass.\nApproach\nIn one forloop set the ans[i] and ans[i + nums.Length]to the current value at nums[i].\nCode\npublic class Solution \n{\n    public int[] GetConcatenation(int[] nums) \n    {\n ..."
url: "https://hashnode.com/posts/leetcode-1929-concatenation-of-array/659afd0bc694f70552568d1d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Leetcode 1929. Concatenation of Array](https://blog.kennycarneal.com/leetcode-1929-concatenation-of-array?utm_source=hashnode&utm_medium=feed)

Intuition Loop through input array and fill answer array in one pass. Approach In one forloop set the ans\[i\] and ans\[i + nums.Length\]to the current value at nums\[i\]. Code public class Solution { public int\[\] GetConcatenation(int\[\] nums) { ...

Jan 7, 2024 · 1 min read · blog.kennycarneal.com  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#csharp](https://hashnode.com/tag/csharp)

## Written by

[Kenny Carneal](https://hashnode.com/@Frawsty)

@Frawsty · Nashville, Tennessee

  
[View profile](https://hashnode.com/@Frawsty)

Christ follower, rollerblader, gamer, developer

I am a developer from Nashville, TN. I specialize in the .NET tech stack. I have created many projects in Blazor WASM, Xamarin, MAUI, etc.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
