Skip to content

Conversation

@DavisD251
Copy link
Contributor

I used the Leetcode prompts to better my understanding as well as AI to further explain the code and better write the code for me. (Im gradually using AI less and not immediately going to my peers for help... forcing myself to either sink or swim!)

public int[] getConcatenation(int[] nums) {
return null;

int[] result = new int[nums.length * 2]; // Create a new array with double the size of nums
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment should go above each line of code, not at the end of the line.

*/
export function getConcatenation(nums: number[]): number[] {
return [];
const result: number[] = new Array(nums.length * 2); // Create a new array of double the length of nums
Copy link
Contributor

Choose a reason for hiding this comment

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

Formatting looks wrong, please fix.

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