Skip to content

add Day11#43

Merged
summer2788 merged 1 commit intomainfrom
11일차_Jongeun
Jul 13, 2024

Hidden character warning

The head ref may contain hidden characters: "11\uc77c\ucc28_Jongeun"
Merged

add Day11#43
summer2788 merged 1 commit intomainfrom
11일차_Jongeun

Conversation

@summer2788
Copy link
Contributor

Day-11 / 박종은

문제 번호

  1. 25_ReverseNodesinkGroup
  2. 102_BinaryTreeLevelOrderTraversal
  3. 235_LowestCommonAncestorofaBinarySearchTree

(Optional) 공유하고 싶은 내용

  1. Definition of BST :
    i. All keys have unique values
    ii. key of each internal node being greater than all the keys in the respective node's left subtree and less than the ones in its right subtree.

    1. Reverse Nodes in k-Group 문제도 linked list 를 재배열 하는 문제였는데 k 개의 group 씩 재 배열 할 때 아래의 방법을 알고 있으면 좋다. 나중에 문제를 풀어보고 그림 그려서 이해해야함
ListNode* prev = dummy;
        ListNode* curr = dummy->next;
        ListNode* temp = NULL;
        
        int count = k;
        
        while (curr != NULL) {
            if (count > 1) {
                temp = prev->next;
                prev->next = curr->next;
                curr->next = curr->next->next;
                prev->next->next = temp;

                count--;

@summer2788 summer2788 linked an issue Jul 12, 2024 that may be closed by this pull request
@github-actions
Copy link

우측에 있는 Projects, Milestone, Development를 확인 후 할당 해주세요~! 🙇

Copy link
Member

@jihostudy jihostudy left a comment

Choose a reason for hiding this comment

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

오늘도 고생했어염

Copy link
Collaborator

@kinwjdghks kinwjdghks left a comment

Choose a reason for hiding this comment

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

오늘도 열심히 하셨군요~~

@summer2788 summer2788 merged commit 524ac86 into main Jul 13, 2024
@summer2788 summer2788 deleted the 11일차_Jongeun branch July 13, 2024 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[DAILY] 11일차

3 participants