Skip to content

feat: add lesson11 Java & Ts HW #393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

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!)

@@ -9,14 +10,27 @@ public class Lesson11 {
* https://leetcode.com/problems/concatenation-of-array
*/
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.

@@ -3,13 +3,26 @@
* https://leetcode.com/problems/concatenation-of-array
*/
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