├── .classpath ├── .project ├── Algorithms ├── birthday-cake-candles.java ├── compare-the-triplets.java ├── mini-max-sum.java ├── plus-minus.java ├── roadsandlibraries.java ├── simple-array-sum.java └── solve-me-first.java ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Data-Structures ├── compare-two-linked-lists.java ├── insertAtEndOfLinkedList.java ├── insertAtHeadOfLinkedList.java ├── insertAtPositionOfLinkedList.java └── traverse-linkedlist.java ├── Java-Strings ├── java-string-reverse.java ├── java-strings-introduction.java └── java-substring.java ├── Java ├── java-end-of-file.java ├── java-if-else.java ├── java-int-to-string.java ├── java-loops-i.java ├── java-loops-ii.java ├── java-output-formatting.java ├── java-static-initializer-block.java ├── java_stdin_stdout_ii.java ├── scanner.java └── welcome-to-java.java ├── LICENSE ├── PULL_REQUEST_TEMPLATE ├── README.md ├── _config.yml └── codedecks.jpg /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | HackerRank-Solutions 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /Algorithms/birthday-cake-candles.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | import java.math.*; 3 | import java.security.*; 4 | import java.text.*; 5 | import java.util.*; 6 | import java.util.concurrent.*; 7 | import java.util.regex.*; 8 | 9 | public class Solution { 10 | 11 | // Complete the birthdayCakeCandles function below. 12 | static int birthdayCakeCandles(int[] ar) { 13 | int len = ar.length; 14 | 15 | // edge test case 16 | if (len == 0){ 17 | return 0; 18 | } 19 | 20 | // find max element 21 | int max = ar[0]; 22 | 23 | // count of max element 24 | int count = 0; 25 | 26 | for(int i=0; i max){ 29 | max = ar[i]; 30 | count = 0; 31 | } 32 | 33 | if(max == ar[i]){ 34 | count++; 35 | } 36 | } 37 | 38 | // now we get max element, find how many times the max element occurs in ar 39 | 40 | /*for(int i=0; i compareTriplets(List a, List b) { 17 | 18 | // resultant List which will store alice & bob scores 19 | List scores = new ArrayList<>(); 20 | 21 | // intialize both alice's & bob's score to 0 22 | int aliceScore = 0; 23 | int bobScore = 0; 24 | 25 | // iterate both the lists a, b 26 | // can take any of the sizes as compare condition since both sizes are 3 27 | for (int i=0; i b.get(i)){ 29 | aliceScore += 1; 30 | } 31 | else if(b.get(i) > a.get(i)) { 32 | bobScore += 1; 33 | } 34 | } 35 | 36 | // first we will add alice's score to scores list 37 | scores.add(aliceScore); 38 | 39 | // now add bob's score to scores list 40 | scores.add(bobScore); 41 | 42 | // scores = [alicesScore, bobScore] 43 | return scores; 44 | } 45 | 46 | public static void main(String[] args) throws IOException { 47 | BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in)); 48 | BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH"))); 49 | 50 | List a = Stream.of(bufferedReader.readLine().replaceAll("\\s+$", "").split(" ")) 51 | .map(Integer::parseInt) 52 | .collect(toList()); 53 | 54 | List b = Stream.of(bufferedReader.readLine().replaceAll("\\s+$", "").split(" ")) 55 | .map(Integer::parseInt) 56 | .collect(toList()); 57 | 58 | List result = compareTriplets(a, b); 59 | 60 | bufferedWriter.write( 61 | result.stream() 62 | .map(Object::toString) 63 | .collect(joining(" ")) 64 | + "\n" 65 | ); 66 | 67 | bufferedReader.close(); 68 | bufferedWriter.close(); 69 | } 70 | } -------------------------------------------------------------------------------- /Algorithms/mini-max-sum.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | import java.math.*; 3 | import java.security.*; 4 | import java.text.*; 5 | import java.util.*; 6 | import java.util.concurrent.*; 7 | import java.util.regex.*; 8 | 9 | public class Solution { 10 | 11 | // Complete the miniMaxSum function below. 12 | static void miniMaxSum(int[] arr) { 13 | 14 | // 1. simple array sum 15 | long sum = arr[0]; 16 | 17 | // 2. find min & max element 18 | int min = arr[0]; 19 | int max = arr[0]; 20 | 21 | for (int i=1; i max){ 28 | max = arr[i]; 29 | } 30 | } 31 | 32 | System.out.println((sum-max) + " " + (sum-min)); 33 | } 34 | 35 | private static final Scanner scanner = new Scanner(System.in); 36 | 37 | public static void main(String[] args) { 38 | int[] arr = new int[5]; 39 | 40 | String[] arrItems = scanner.nextLine().split(" "); 41 | scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?"); 42 | 43 | for (int i = 0; i < 5; i++) { 44 | int arrItem = Integer.parseInt(arrItems[i]); 45 | arr[i] = arrItem; 46 | } 47 | 48 | miniMaxSum(arr); 49 | 50 | scanner.close(); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Algorithms/plus-minus.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | import java.math.*; 3 | import java.security.*; 4 | import java.text.*; 5 | import java.util.*; 6 | import java.util.concurrent.*; 7 | import java.util.regex.*; 8 | 9 | public class Solution { 10 | 11 | // Complete the plusMinus function below. 12 | static void plusMinus(int[] arr) { 13 | 14 | // len is total number of elements in arr 15 | float len = arr.length; 16 | 17 | // count of positive elements 18 | int countPositive = 0; 19 | 20 | // count of negative elements; 21 | int countNegative = 0; 22 | 23 | for(int i=0; i 0){ 27 | countPositive++; 28 | } 29 | // negative number check 30 | else if(arr[i] < 0){ 31 | countNegative++; 32 | } 33 | 34 | if(i == (len-1)){ 35 | // int countZeros = len - (countPositive+countNegative); 36 | 37 | System.out.printf("%1.6f \n",countPositive/len); 38 | System.out.printf("%1.6f \n",countNegative/len); 39 | System.out.printf("%1.6f \n",(len -(countPositive+countNegative))/len); 40 | } 41 | } 42 | 43 | } 44 | 45 | private static final Scanner scanner = new Scanner(System.in); 46 | 47 | public static void main(String[] args) { 48 | int n = scanner.nextInt(); 49 | scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?"); 50 | 51 | int[] arr = new int[n]; 52 | 53 | String[] arrItems = scanner.nextLine().split(" "); 54 | scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?"); 55 | 56 | for (int i = 0; i < n; i++) { 57 | int arrItem = Integer.parseInt(arrItems[i]); 58 | arr[i] = arrItem; 59 | } 60 | 61 | plusMinus(arr); 62 | 63 | scanner.close(); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /Algorithms/roadsandlibraries.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | import java.math.*; 3 | import java.security.*; 4 | import java.text.*; 5 | import java.util.*; 6 | import java.util.concurrent.*; 7 | import java.util.regex.*; 8 | 9 | //by jnaneswar 10 | public class Solution { 11 | 12 | // Complete the roadsAndLibraries function below. 13 | static long roadsAndLibraries(int n, int c_lib, int c_road, int[][] cities) { 14 | ArrayList> adj = new ArrayList>(n+1); 15 | for(int i=0;i<=n;i++) 16 | adj.add(new ArrayList()); 17 | for(int i=0;i comp = new ArrayList(); 25 | 26 | for(int i=1;i<=n;i++) 27 | { 28 | if(!vis[i]) 29 | { 30 | comp.add(dfs(adj,vis,i)); 31 | } 32 | 33 | } 34 | long ans=0; 35 | for(int i=0;i> adj,boolean[] vis , int s) 42 | { int ans=1; 43 | vis[s]=true; 44 | 45 | for(int v:adj.get(s)) 46 | { 47 | if(vis[v]==false) 48 | ans+=dfs(adj,vis,v); 49 | } 50 | return ans; 51 | } 52 | 53 | private static final Scanner scanner = new Scanner(System.in); 54 | 55 | public static void main(String[] args) throws IOException { 56 | BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH"))); 57 | 58 | int q = scanner.nextInt(); 59 | scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?"); 60 | 61 | for (int qItr = 0; qItr < q; qItr++) { 62 | String[] nmC_libC_road = scanner.nextLine().split(" "); 63 | 64 | int n = Integer.parseInt(nmC_libC_road[0]); 65 | 66 | int m = Integer.parseInt(nmC_libC_road[1]); 67 | 68 | int c_lib = Integer.parseInt(nmC_libC_road[2]); 69 | 70 | int c_road = Integer.parseInt(nmC_libC_road[3]); 71 | 72 | int[][] cities = new int[m][2]; 73 | 74 | for (int i = 0; i < m; i++) { 75 | String[] citiesRowItems = scanner.nextLine().split(" "); 76 | scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?"); 77 | 78 | for (int j = 0; j < 2; j++) { 79 | int citiesItem = Integer.parseInt(citiesRowItems[j]); 80 | cities[i][j] = citiesItem; 81 | } 82 | } 83 | 84 | long result = roadsAndLibraries(n, c_lib, c_road, cities); 85 | 86 | bufferedWriter.write(String.valueOf(result)); 87 | bufferedWriter.newLine(); 88 | } 89 | 90 | bufferedWriter.close(); 91 | 92 | scanner.close(); 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /Algorithms/simple-array-sum.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | import java.math.*; 3 | import java.text.*; 4 | import java.util.*; 5 | import java.util.regex.*; 6 | 7 | public class Solution { 8 | 9 | /* 10 | * Complete the simpleArraySum function below. 11 | */ 12 | static int simpleArraySum(int[] ar) { 13 | /* 14 | * Write your code here. 15 | */ 16 | 17 | // ar = 1,2,3 18 | 19 | // intialize a variable with intial value as 0 20 | // iterate through the array 21 | // add each element's value to this variable 22 | // assign the above value each time to variable 23 | // return the final value of variable 24 | 25 | int sum = 0; 26 | for(int i=0; i 1) 19 | System.out.println("Yes"); 20 | else 21 | System.out.println("No"); 22 | 23 | //op 3 24 | A = A.substring(0, 1).toUpperCase() + A.substring(1); 25 | B = B.substring(0, 1).toUpperCase() + B.substring(1); 26 | 27 | System.out.println(A+" "+B); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Java-Strings/java-substring.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | import java.util.*; 3 | import java.text.*; 4 | import java.math.*; 5 | import java.util.regex.*; 6 | 7 | public class Solution { 8 | 9 | public static void main(String[] args) { 10 | Scanner in = new Scanner(System.in); 11 | String S = in.next(); 12 | int start = in.nextInt(); 13 | int end = in.nextInt(); 14 | 15 | System.out.println(S.substring(start, end)); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Java/java-end-of-file.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | import java.util.*; 3 | import java.text.*; 4 | import java.math.*; 5 | import java.util.regex.*; 6 | 7 | public class Solution { 8 | 9 | public static void main(String[] args) { 10 | /* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */ 11 | Scanner kb = new Scanner(System.in); 12 | String [] str = new String[100000]; 13 | int i =0; 14 | 15 | while(kb.hasNext()){ 16 | str[i++] = kb.nextLine(); 17 | } 18 | kb.close(); 19 | i--; 20 | int x = i; 21 | i = 0; 22 | 23 | while(i<=x){ 24 | System.out.println((i+1)+" "+str[i]); 25 | i++; 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Java/java-if-else.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | import java.math.*; 3 | import java.security.*; 4 | import java.text.*; 5 | import java.util.*; 6 | import java.util.concurrent.*; 7 | import java.util.regex.*; 8 | 9 | public class Solution { 10 | 11 | private static final Scanner scanner = new Scanner(System.in); 12 | 13 | public static void main(String[] args) { 14 | int N = scanner.nextInt(); 15 | scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?"); 16 | 17 | // N is odd 18 | // N%2 give remainder when divided by 2 19 | // if-else ladder 20 | if (N%2 != 0) { 21 | System.out.println("Weird"); 22 | } 23 | else if (N>=2 && N<=5){ 24 | System.out.println("Not Weird"); 25 | } 26 | else if (N>=6 && N<=20){ 27 | System.out.println("Weird"); 28 | } 29 | else{ 30 | System.out.println("Not Weird"); 31 | } 32 | scanner.close(); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /Java/java-int-to-string.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | import java.security.*; 3 | public class Solution { 4 | public static void main(String[] args) { 5 | 6 | DoNotTerminate.forbidExit(); 7 | 8 | try { 9 | Scanner in = new Scanner(System.in); 10 | int n = in .nextInt(); 11 | in.close(); 12 | //String s=???; Complete this line below 13 | 14 | String s = "" + n; 15 | 16 | if (n == Integer.parseInt(s)) { 17 | System.out.println("Good job"); 18 | } else { 19 | System.out.println("Wrong answer."); 20 | } 21 | } catch (DoNotTerminate.ExitTrappedException e) { 22 | System.out.println("Unsuccessful Termination!!"); 23 | } 24 | } 25 | } 26 | 27 | //The following class will prevent you from terminating the code using exit(0)! 28 | class DoNotTerminate { 29 | 30 | public static class ExitTrappedException extends SecurityException { 31 | 32 | private static final long serialVersionUID = 1; 33 | } 34 | 35 | public static void forbidExit() { 36 | final SecurityManager securityManager = new SecurityManager() { 37 | @Override 38 | public void checkPermission(Permission permission) { 39 | if (permission.getName().contains("exitVM")) { 40 | throw new ExitTrappedException(); 41 | } 42 | } 43 | }; 44 | System.setSecurityManager(securityManager); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Java/java-loops-i.java: -------------------------------------------------------------------------------- 1 | import java.io.*; 2 | import java.math.*; 3 | import java.security.*; 4 | import java.text.*; 5 | import java.util.*; 6 | import java.util.concurrent.*; 7 | import java.util.regex.*; 8 | 9 | public class Solution { 10 | 11 | private static final Scanner scanner = new Scanner(System.in); 12 | 13 | public static void main(String[] args) { 14 | int N = scanner.nextInt(); 15 | scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?"); 16 | 17 | for(int i=1; i<=10; i++){ 18 | System.out.println(N+ " x " + i + " = " + (N*i)); 19 | } 20 | scanner.close(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Java/java-loops-ii.java: -------------------------------------------------------------------------------- 1 | import java.util.*; 2 | import java.io.*; 3 | 4 | class Solution{ 5 | public static void main(String []argh){ 6 | Scanner in = new Scanner(System.in); 7 | int t=in.nextInt(); 8 | 9 | for(int i=0;i 4 | 5 | 6 | 7 | 8 | 9 | 10 |

11 | 12 | 13 | [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/codedecks-in/HackerRank-Solutions/blob/master/LICENSE) 14 | [![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)](https://github.com/ellerbrock/open-source-badges/) 15 | [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/codedecks-in/HackerRank-Solutions/blob/master/PULL_REQUEST_TEMPLATE) 16 | [![first-timers-only-friendly](http://img.shields.io/badge/first--timers--only-friendly-blue.svg?style=flat-square)](https://code.publiclab.org#r=all) 17 | [![HitCount](http://hits.dwyl.com/codedecks-in/HackerRank-Solutions.svg)](http://hits.dwyl.com/codedecks-in/HackerRank-Solutions) 18 | 19 | [![Everything Is AWESOME](https://github.com/codedecks-in/HackerRank-Solutions/blob/master/codedecks.jpg)](https://www.youtube.com/c/codedecks?sub_confirmation=1 "Everything Is AWESOME") 20 | 21 | - ### This project include solutions of the problem from hackerrank which will be helpful for coding interview preparation. This project is work in progress, we are uploading solutions as soon as new video is releasing in our youtube channel [codedecks](https://www.youtube.com/c/codedecks?sub_confirmation=1) 22 | - ### Don't forget to give us a 🌟 to support us to make this helpful for people preparing for coding competitions and doing interview preparations. 23 | 24 | ---------------------------- 25 | Welcome geeks !!! 26 |
27 | 28 | Are you looking for anyone of these things ? 29 | 30 | hackerrank solutions java GitHub | hackerrank tutorial in java | hackerrank 30 days of code solutions | hackerrank algorithms solutions | hackerrank cracking the coding interview solutions | hackerrank general programming solutions | hackerrank implementation solutions | hackerrank data structures solutions in java | hackerrank algorithm solution in java | hackerrank challenges solutions | hackerrank practices solutions | hackerrank coding challenges solutions | hackerrank questions | hackerrank problems | how to solve hackerrank practice problem in java | problem solving | coding interview | coding | programming | codedecks | codedecks compete 31 | 32 | ----------------------------- 33 | 34 | ### Contents 35 | * [JAVA](#java) 36 | * [ALGORITHMS](#algorithms) 37 | * [DATA STRUCTURES](#data-structures) 38 | * [IMPLEMENTATION](#implementation) 39 | * [LEARNING RESOURCES](#learning-resources) 40 | 41 | 42 | # [JAVA](https://www.hackerrank.com/domains/java) 43 | | Subdomain | Description/Title | Solution | Video Explaination | 44 | | ---- | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ----------------- | 45 | | Introduction | [Welcome to Java!](https://www.hackerrank.com/challenges/welcome-to-java/problem)| [Solution1.java](./Java/welcome-to-java.java) | [YT Video](https://youtu.be/r268lvNP5OU) | 46 | | Introduction | [Java Stdin and Stdout I](https://www.hackerrank.com/challenges/java-stdin-and-stdout-1/problem)| [Solution2.java](./Java/scanner.java) | [YT Video](https://youtu.be/r268lvNP5OU) | 47 | | Introduction | [Java If-Else](https://www.hackerrank.com/challenges/java-if-else/problem)| [Solution3.java](./Java/java-if-else.java) | [YT Video](https://youtu.be/O0q_zZI7ccM) | 48 | | Introduction | [Java Stdin and Stdout II](https://www.hackerrank.com/challenges/java-stdin-stdout/problem)| [Solution4.java](./Java/java_stdin_stdout_ii.java) | [YT Video](https://youtu.be/BPjNbwO02IY) | 49 | | Introduction | [Java Loops I](https://www.hackerrank.com/challenges/java-loops-i/problem)| [Solution5.java](./Java/java-loops-i.java) | [YT Video](https://youtu.be/kfTsUFggRhI) | 50 | | Introduction | [Java Loops II](https://www.hackerrank.com/challenges/java-loops/problem)| [Solution6.java](./Java/java-loops-ii.java) | [YT Video](https://youtu.be/jXY0GVkSMDU) | 51 | | Introduction | [Java Output Formatting](https://www.hackerrank.com/challenges/java-output-formatting/problem)| [Solution7.java](./Java/java-output-formatting.java) | [YT Video]() | 52 | | Introduction | [Java End-of-file](https://www.hackerrank.com/challenges/java-end-of-file/problem)| [Solution8.java](./Java/java-end-of-file.java) | [YT Video]() | 53 | | Introduction | [Java Static Initializer Block](https://www.hackerrank.com/challenges/java-static-initializer-block/problem)| [Solution9.java](./Java/java-static-initializer-block.java) | [YT Video]() | 54 | | Introduction | [Java Int to String](https://www.hackerrank.com/challenges/java-int-to-string/problem)| [Solution10.java](./Java/java-int-to-string.java) | [YT Video]() | 55 | 56 | 57 | 58 | # [ALGORITHMS](https://www.hackerrank.com/domains/algorithms) 59 | | Subdomain | Description/Title | Solution | Video Explaination | 60 | | ---- | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ----------------- | 61 | | Warmup | [Solve Me First](https://www.hackerrank.com/challenges/solve-me-first/problem)| [Solution1.java](./Algorithms/solve-me-first.java) | [YT Video](https://youtu.be/pO3lF-trL6E) | 62 | | Warmup | [Simple Array Sum](https://www.hackerrank.com/challenges/simple-array-sum/problem)| [Solution2.java](./Algorithms/simple-array-sum.java) | [YT Video](https://youtu.be/avg_9s_39fM) | 63 | | Warmup | [Compare the Triplets](https://www.hackerrank.com/challenges/compare-the-triplets/problem)| [Solution3.java](./Algorithms/compare-the-triplets.java) | [YT Video](https://youtu.be/46SWRZ_yFvc) | 64 | | Warmup | [Mini-Max Sum](https://www.hackerrank.com/challenges/mini-max-sum/problem)| [Solution4.java](./Algorithms/mini-max-sum.java) | [YT Video](https://youtu.be/iL6sAbLRspM) | 65 | | Warmup | [Plus Minus](https://www.hackerrank.com/challenges/plus-minus/problem)| [Solution5.java](./Algorithms/plus-minus.java) | [YT Video](https://youtu.be/D4S9CQU-Cx0) | 66 | | Warmup | [Birthday Cake Candles](https://www.hackerrank.com/challenges/birthday-cake-candles)| [Solution6.java](./Algorithms/birthday-cake-candles.java) | [YT Video](https://youtu.be/B9v4jqx17dY) | 67 | | Warmup | [Roads and Libraries](https://www.hackerrank.com/challenges/torque-and-development/problem)| [Solution7.java](./Algorithms/roadsandlibraries.java) | [YT Video]() | 68 | 69 | # [DATA STRUCTURES](https://www.hackerrank.com/domains/data-structures) 70 | | Subdomain | Description/Title | Solution | Video Explaination | 71 | | ---- | ---------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ----------------- | 72 | | Easy | [Print the Elements of a Linked List](https://www.hackerrank.com/challenges/print-the-elements-of-a-linked-list/problem)| [Solution1.java](./Data-Structures/traverse-linkedlist.java) | [YT Video](https://youtu.be/KVTaQ0jy7Jw) | 73 | | Easy | [Insert a node at the head of a linked list](https://www.hackerrank.com/challenges/insert-a-node-at-the-head-of-a-linked-list/problem)| [Solution2.java](./Data-Structures/insertAtHeadOfLinkedList.java) | [YT Video](https://youtu.be/KVTaQ0jy7Jw) 74 | | Easy | [Insert a Node at the Tail of a Linked List](https://www.hackerrank.com/challenges/insert-a-node-at-the-tail-of-a-linked-list/problem)| [Solution3.java](./Data-Structures/insertAtEndOfLinkedList.java) | [YT Video](https://youtu.be/KVTaQ0jy7Jw) 75 | | Easy | [Insert a node at a specific position in a linked list](https://www.hackerrank.com/challenges/insert-a-node-at-a-specific-position-in-a-linked-list/problem)| [Solution4.java](./Data-Structures/insertAtPositionOfLinkedList.java) | [YT Video](https://youtu.be/KVTaQ0jy7Jw) 76 | | Easy | [Compare two linked lists](https://www.hackerrank.com/challenges/compare-two-linked-lists/problem)| [Solution5.java](./Data-Structures/compare-two-linked-lists.java) | [YT Video](https://youtu.be/KVTaQ0jy7Jw) 77 | 78 | # Learning Resources 79 | 1.) [Cracking the Coding Interview](https://amzn.to/3fH727G) 80 | 81 | 2.) [Data Structures and Algorithms Made Easy in Java](https://amzn.to/3fJXsRC) 82 | 83 | 3.) [Data Structure and Algorithmic Thinking with Python](https://amzn.to/30Ldczp) 84 | 85 | 4.) [Grooking Algorithms](https://amzn.to/3aeTcrV) 86 | 87 | 5.) [Dynamic Programming for Coding Interviews](https://amzn.to/31K16po) 88 | 89 | DISCLAIMER: This above mentioned resources have affiliate links, which means if you buy one of the product from my links, I’ll receive a small commission. This helps support the channel and allows us to continue to add more tutorial. Thank you for the support! 90 | 91 | 92 | ### Wanted to Contribute ? 93 | ``Are you up for your first PR for this project !!!`` 94 |
95 | Awesome but please first go through the [PULL REQUEST TEMPLATE](https://github.com/codedecks-in/HackerRank-Solutions/blob/master/PULL_REQUEST_TEMPLATE) and use this template to submit your PR. 96 | 97 | Please read [CONTRIBUTING.md](https://github.com/codedecks-in/HackerRank-Solutions/blob/master/CONTRIBUTING.md) and [CODE OF CONDUCT.md](https://github.com/codedecks-in/HackerRank-Solutions/blob/master/CODE_OF_CONDUCT.md) for details on our code of conduct, and the process for submitting pull requests to us. 98 | 99 | ### Authors 100 | * **[Gourav Rusiya](https://github.com/GouravRusiya30)** 101 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-dinky -------------------------------------------------------------------------------- /codedecks.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codedecks-in/HackerRank-Solutions/961bb383398837cf80d7e0a71db7d44bc395e49d/codedecks.jpg --------------------------------------------------------------------------------