Hackerrank - pairs https://www.hackerrank.com/challenges/pairs/problem Pairs | HackerRank Given N numbers, count the total pairs of numbers that have a difference of K. www.hackerrank.com function pairs(k,arr){ arr.sort((a,b)=>a-b); let start = 0; let end = 0; let cnt = 0; while(end Algorithm/Hackerrank 3년 전
Hackerrank - Merge two sorted linked list https://www.hackerrank.com/challenges/one-week-preparation-kit-merge-two-sorted-linked-lists/problem?isFullScreen=true&h_l=interview&playlist_slugs%5B%5D=preparation-kits&playlist_slugs%5B%5D=one-week-preparation-kit&playlist_slugs%5B%5D=one-week-day-five Merge two sorted linked lists | HackerRank Given the heads of two sorted linked lists, change their links to get a single, sorted linked list... Algorithm/Hackerrank 3년 전