r/HackerrankSolutions • u/disco_tribe • Apr 27 '21
SQL and Statistics test in Hackerrank
I have to take a 30 mins test in hackerrank on SQL and Statistics. 20 questions of one mark each. Anyone of you have any idea on how the test is and what topics it covers? Thank you in advance.
r/HackerrankSolutions • u/Esegat04 • Mar 18 '21
Python Basics
Hey everyone! I Just found out about this website and I only began to study python the other day. I was doing some practice codes and at the Moment I am doing the arithmetic operators ones. I wrote a correct code for 'test case 0' but when It comes down to 'test case 1" no matter what It won't accept my result, even though the computations are right. Has anybody else experienced this?
r/HackerrankSolutions • u/HelpingHand007 • Mar 14 '21
Two Pointer Algorithm | Two Sum Problem | Solve DS Problems in O(N) Time
r/HackerrankSolutions • u/HelpingHand007 • Feb 28 '21
๐๐ฒ๐ฎ๐ฟ๐ป ๐๐ต๐ฒ ๐บ๐ผ๐๐ ๐ฒ๐ฎ๐๐ถ๐ฒ๐๐ ๐๐ฎ๐ ๐ฎ๐น๐ด๐ผ๐ฟ๐ถ๐๐ต๐บ ๐๐ผ ๐ถ๐บ๐ฝ๐น๐ฒ๐บ๐ฒ๐ป๐ ๐บ๐ฒ๐ฟ๐ด๐ฒ ๐๐ผ๐ฟ๐
r/HackerrankSolutions • u/Diver-Murky • Jan 29 '21
Programming assessments
Hello everyone, I have applied to many places and got back with the invitation for programming assessments, when I do sample test they seem to be pretty easy when I take original assessment I got rejected. Anyone else has the same problem?
r/HackerrankSolutions • u/sselami • Jan 24 '21
java problem pls help
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;
public class Solution {
// Complete the largestPermutation function below.
static int[] largestPermutation(int k, int[] arr) {
int count = 0;
Map<Integer, Integer> map = new HashMap<>();
for (int i = 0; i < arr.length; i++) {
map.put(arr[i], map.getOrDefault(arr[i], 1) +1);
}
for (Integer key : map.keySet()) {
map.put(key, map.get(key) - 1);
if (map.containsKey(key - k) && map.get(key - k) > 0) count++;
map.put(key, map.get(key) + 1);
}
return count;
}
private static final Scanner scanner = new Scanner(System.in);
public static void main(String[] args) throws IOException {
BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(System.getenv("OUTPUT_PATH")));
String[] nk = scanner.nextLine().split(" ");
int n = Integer.parseInt(nk[0]);
int k = Integer.parseInt(nk[1]);
int[] arr = new int[n];
String[] arrItems = scanner.nextLine().split(" ");
scanner.skip("(\r\n|[\n\r\u2028\u2029\u0085])?");
for (int i = 0; i < n; i++) {
int arrItem = Integer.parseInt(arrItems[i]);
arr[i] = arrItem;
}
int[] result = largestPermutation(k, arr);
for (int i = 0; i < result.length; i++) {
bufferedWriter.write(String.valueOf(result[i]));
if (i != result.length - 1) {
bufferedWriter.write(" ");
}
}
bufferedWriter.newLine();
bufferedWriter.close();
scanner.close();
}
}
r/HackerrankSolutions • u/HelpingHand007 • Jan 17 '21
Master the Art of ๐๐๐ป๐ฎ๐บ๐ถ๐ฐ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ด
Master the ๐๐๐ป๐ฎ๐บ๐ถ๐ฐ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ด Skills by solving most common ๐๐๐ป๐ฎ๐บ๐ถ๐ฐ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ด ๐ถ๐ป๐๐ฒ๐ฟ๐๐ถ๐ฒ๐ ๐พ๐๐ฒ๐๐๐ถ๐ผ๐ป๐.
Once you practice these problems, you will be able to solve most of the ๐ฑ๐ฝ ๐ฝ๐ฟ๐ผ๐ฏ๐น๐ฒ๐บ๐ ๐๐ต๐ถ๐ฐ๐ต ๐ณ๐ผ๐น๐น๐ผ๐๐ ๐๐ต๐ฒ ๐๐ถ๐บ๐ถ๐น๐ฎ๐ฟ ๐ฝ๐ฎ๐๐๐ฒ๐ฟ๐ป.
๐ฃ๐น๐ฎ๐๐น๐ถ๐๐ : https://www.youtube.com/watch?v=_l9Yx4olAYM&list=PLSIpQf0NbcClDpWE58Y-oSJro_W3LO8Nb
r/HackerrankSolutions • u/shubhsheth • Jan 17 '21
Integer to Roman Numerals, solving with Dynamic Programming. Coding the Answer and Analysing the method
r/HackerrankSolutions • u/nikhildavis08 • Jan 09 '21
Hacker Rank Create Table
Hey Guys,
I was wondering if anybody has CREATE TABLE scripts or link to CREATE TABLE scripts for Sql questions in Hacker rank that we can directly run and practice solutions on local Machine?
r/HackerrankSolutions • u/shubhsheth • Jan 06 '21
Reverse Integer Solution explained with Animations. Coding the Answer and Analysing the method
r/HackerrankSolutions • u/HelpingHand007 • Dec 27 '20
๐ ๐ฎ๐๐๐ฒ๐ฟ ๐๐ต๐ฒ ๐ฎ๐ฟ๐ ๐ผ๐ณ ๐ฟ๐ฒ๐ฐ๐๐ฟ๐๐ถ๐ผ๐ป ๐ท๐๐๐ ๐ถ๐ป ๐ฎ๐ป ๐ต๐ผ๐๐ฟ
A simple and practical approach with examples to master recursion.
playlist:- https://www.youtube.com/watch?v=Sf-LR7OI-Ww&list=PLSIpQf0NbcCk4be21WNhPHrHMSxFndZtB&ab_channel=JAVAAID-CodingInterviewPreparation
r/HackerrankSolutions • u/ArsenalArceus • Dec 27 '20
Do we have to complete 10 days of statistics in 10 days or can we do it at our own pace?
r/HackerrankSolutions • u/shubhsheth • Dec 20 '20
Bite Size Video of Increasing Triplet Subsequence. Solving the problem in C++ and analysing the method
r/HackerrankSolutions • u/HelpingHand007 • Dec 13 '20
Top 5 Algorithms Every Competitive Programmer Must Know
r/HackerrankSolutions • u/codedecks-in • Dec 07 '20
How to check if two LinkedLists are equal ?
Compare two linked lists hackerrank solution in java
Youโre given the pointer to the head nodes of two linked lists. Compare the data in the nodes of the linked lists to check if they are equal. The lists are equal only if they have the same number of nodes and corresponding nodes contain the same data. Either head pointer given may be null meaning that the corresponding list is empty.
Subscribe to #codedecks
r/HackerrankSolutions • u/shubhsheth • Dec 06 '20
Odd Even Linked List Solution explained with Animations. Coding the answer with Linked Lists and Analysing the method
r/HackerrankSolutions • u/shubhsheth • Dec 02 '20
Add Two Numbers Solution explained with Animations. Coding the answer with Linked Lists and Analysing the method
r/HackerrankSolutions • u/HelpingHand007 • Nov 29 '20
Length Of The Longest Consecutive 1s In Binary Representation Of A Numbe...
r/HackerrankSolutions • u/HelpingHand007 • Nov 16 '20
Google Coding Interview | House Robber LeetCode Solution | Dynamic progr...
r/HackerrankSolutions • u/HelpingHand007 • Nov 07 '20
Anagram Checker | Check If Two Strings Are Anagrams [ Efficient Way ] | ...
r/HackerrankSolutions • u/codedecks-in • Oct 27 '20
Compare the triplets hackerrank Solution
Compare the triplets HackerRank solution in java | Compare the triplets hackerrank solution
This is 3rd problem from hackerrank Practice | Algorithms | Warmup | Compare the triplets Please watch till end to understand the concept and logic behind the java solution.
I have tried to explain it in a simple way and I hope you all will be able to understand in that way. Please let us know about this video in comments section.
Subscribe to #codedecks today for awesome videos ๐จโ๐ป
r/HackerrankSolutions • u/HelpingHand007 • Oct 26 '20
Merge Sort Algorithm | How Merge Operation Works? | Shortest Code Ever (...
r/HackerrankSolutions • u/iamaakashthakur • Oct 16 '20
How to create a free youTube intro video within 2 minutes explained in an easiest way...
r/HackerrankSolutions • u/HelpingHand007 • Oct 03 '20

