Programming107 [Hackerrank] SortedInsert www.hackerrank.com/challenges/insert-a-node-into-a-sorted-doubly-linked-list/problem Inserting a Node Into a Sorted Doubly Linked List | HackerRank Create a node with a given value and insert it into a sorted doubly-linked list www.hackerrank.com package exam.complete; import exam.DoublyLinkedListNode; //https://www.hackerrank.com/challenges/insert-a-node-into-a-sorted-doubly-linked-list/problem.. 2020. 12. 2. [Hackerrank] ReversePrint https://www.hackerrank.com/challenges/print-the-elements-of-a-linked-list-in-reverse/problem Print in Reverse | HackerRank Print the elements of a linked list in reverse order, from tail to head www.hackerrank.com package exam.complete; import exam.SinglyLinkedListNode; import java.util.ArrayList; import java.util.List; //https://www.hackerrank.com/challenges/print-the-elements-of-a-linked-list-.. 2020. 12. 2. [Hackerrank] Reversealinkedlist www.hackerrank.com/challenges/reverse-a-linked-list/problem Reverse a linked list | HackerRank Change the links between the nodes of a linked list to reverse it www.hackerrank.com package exam.complete; import exam.SinglyLinkedListNode; //https://www.hackerrank.com/challenges/reverse-a-linked-list/problem public class Reversealinkedlist { public static void main(String[] args) { SinglyLinkedList.. 2020. 12. 2. [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. 이전 1 ··· 4 5 6 7 8 9 10 ··· 12 다음