Programming/Data Structure25 [Hackerrank] ReverseADoublyLinkedList www.hackerrank.com/challenges/reverse-a-doubly-linked-list/problemReverse a doubly linked list | HackerRankGiven the head node of a doubly linked list, reverse it.www.hackerrank.compackage exam.complete; //https://www.hackerrank.com/challenges/reverse-a-doubly-linked-list/problem import exam.DoublyLinkedListNode; public class ReverseADoublyLinkedList { public static void main(String[] args) { Do.. 2020. 12. 2. [Hackerrank] PrintLinkedList www.hackerrank.com/challenges/print-the-elements-of-a-linked-list/problemPrint the Elements of a Linked List | HackerRankGet started with Linked Lists!www.hackerrank.compackage exam.complete; import exam.SinglyLinkedListNode; //https://www.hackerrank.com/challenges/print-the-elements-of-a-linked-list/problem public class PrintLinkedList { static void printLinkedList(SinglyLinkedListNode head) { .. 2020. 12. 2. [Hackerrank] MergeTwoSortedLinkedLists https://www.hackerrank.com/challenges/merge-two-sorted-linked-lists/problemMerge two sorted linked lists | HackerRankGiven the heads of two sorted linked lists, change their links to get a single, sorted linked list.www.hackerrank.compackage exam.complete; //https://www.hackerrank.com/challenges/merge-two-sorted-linked-lists/problem import exam.SinglyLinkedListNode; import java.util.ArrayList; i.. 2020. 12. 2. [Hackerrank] MatchingStrings https://www.hackerrank.com/challenges/sparse-arrays/problemSparse Arrays | HackerRankDetermine the number of times a string has previously appeared.www.hackerrank.compackage exam.complete; //https://www.hackerrank.com/challenges/sparse-arrays/problem import java.util.Arrays; import java.util.HashMap; import java.util.Map; public class MatchingStrings { public static void main(String[] args) { Sy.. 2020. 12. 2. [Hackerrank] InsertNodeAtTail https://www.hackerrank.com/challenges/insert-a-node-at-the-tail-of-a-linked-list/problemInsert a Node at the Tail of a Linked List | HackerRankCreate and insert a new node at the tail of a linked list.www.hackerrank.compackage exam.complete; import exam.SinglyLinkedListNode; //https://www.hackerrank.com/challenges/insert-a-node-at-the-tail-of-a-linked-list/problem public class InsertNodeAtTail {.. 2020. 12. 2. [Hackerrank] InsertNodeAtPosition www.hackerrank.com/challenges/insert-a-node-at-a-specific-position-in-a-linked-list/problem Insert a node at a specific position in a linked list | HackerRank Insert a node at a specific position in a linked list. www.hackerrank.com package exam.complete; //https://www.hackerrank.com/challenges/insert-a-node-at-a-specific-position-in-a-linked-list/problem import exam.SinglyLinkedListNode; public.. 2020. 12. 2. [Hackerrank] InsertNodeAtHead www.hackerrank.com/challenges/insert-a-node-at-the-head-of-a-linked-list/problemInsert a node at the head of a linked list | HackerRankCreate and insert a new node at the head of a linked listwww.hackerrank.compackage exam.complete; //https://www.hackerrank.com/challenges/insert-a-node-at-the-head-of-a-linked-list/problem import exam.SinglyLinkedListNode; public class InsertNodeAtHead { static S.. 2020. 12. 2. [Hackerrank] GetNodeValue www.hackerrank.com/challenges/get-the-value-of-the-node-at-a-specific-position-from-the-tail/problemGet Node Value | HackerRankGiven the head of a linked list, get the value of the node at a given position when counting backwards from the tail.www.hackerrank.compackage exam.complete; //https://www.hackerrank.com/challenges/get-the-value-of-the-node-at-a-specific-position-from-the-tail/problem im.. 2020. 12. 2. [Hackerrank] FindMergePointofTwoLists www.hackerrank.com/challenges/find-the-merge-point-of-two-joined-linked-lists/problem Find Merge Point of Two Lists | HackerRank Given two linked lists, find the node where they merge into one. www.hackerrank.com package exam.complete; //https://www.hackerrank.com/challenges/find-the-merge-point-of-two-joined-linked-lists/problem import exam.SinglyLinkedListNode; public class FindMergePointofTwo.. 2020. 12. 2. 이전 1 2 3 다음