문서 편집 권한이 없습니다. 다음 이유를 확인해주세요: 요청한 명령은 다음 권한을 가진 사용자에게 제한됩니다: 사용자. 문서의 원본을 보거나 복사할 수 있습니다. ==개요== HR30 Day 24: More Linked Lists * https://www.hackerrank.com/challenges/30-linked-list-deletion/problem {{HR30 헤더}} {{HR30 20-29}} |} ==Java== {{참고|HR30 Day 24: More Linked Lists/Java}} <syntaxhighlight lang='Java'> public static Node removeDuplicates(Node head) { //Write your code here Node cur = head; while (cur != null && cur.next != null) { while (cur.next != null && cur.data == cur.next.data) { cur.next = cur.next.next; } cur = cur.next; } return head; } </syntaxhighlight> ==PHP== {{참고|HR30 Day 24: More Linked Lists/PHP}} <syntaxhighlight lang='PHP'> function removeDuplicates($head){ //Write your code here $cur = $head; while( !is_null($cur) && !is_null($cur->next) ) { while( !is_null($cur->next) && $cur->data == $cur->next->data) { $cur->next = $cur->next->next; } $cur = $cur->next; } return $head; } </syntaxhighlight> 이 문서에서 사용한 틀: 틀:Ed (원본 보기) 틀:HR30 20-29 (원본 보기) 틀:HR30 헤더 (원본 보기) 틀:언어아이콘 (원본 보기) 틀:언어이미지 (원본 보기) 틀:참고 (원본 보기) HR30 Day 24: More Linked Lists 문서로 돌아갑니다.