HackerRank Problem Solving Basic Certification Solutions 2020[UPDATED QUESTIONS]

This post covers the solutions of certification problems of problem solving. HackerRank Problem Solving Basic Certification Solutions 2020

This post is “For Educational Purposes Only”

Also Read: HackerRank JAVA Basic Certification Solutions 2020

HackerRank Problem Solving Basic Certification Solutions 2020[UPDATED QUESTIONS]

What is Hackerrank Certification?

Also Read: HackerRank JAVA Basic Certification Solutions 2020

You can take the HackerRank Skills Certification Test and showcase your knowledge as a HackerRank verified developer.

Let’s see the questions now:

Also Read: How To Make Telegram BOT with Python

HackerRank Problem Solving Basic Certification Solutions 2020

Que: Active Traders Hackerrank Solution

Solution: active traders hackerrank python solution

def mostActive(customers):
    store=dict()
    res=[]
    for i in customers:
        for i in store:
            store[i]+=1
        else:
            store[i]=1
            
    for i in store.items():
        if(i[1]/len(customers))*100>5 or (len(customers)*5)/100>=5:
            if(1[1]/len(customers))*100 >=(len(customers)*5)/100>=5 or (1[1]/len(customers))*100>=5:
                res.append(i[0])
    return sorted (res)

Que 1: Gaming Laptop Battery Life Hackerrank Solution

Solution:

Python 3:


charge=50
for i in events:
 charge=charge+i
 if charge>100:
 charge=100
return charge

Also Read: HackerRank JAVA Basic Certification Solutions 2020

Que 2: Unexpected Demand Hackerrank Solution

Solution: JAVA 8

int cnt=0;
Collections.sort(order);
for(int i=0;i<order.size();i++){
if(order.get(i)<=k){
cnt++;
k=k-order.get(i);
}
}
return cnt;

Que 3: Largest Sub Array Hackerrank Solution

Solution :JAVA 8

int max=0;
Set <Integer>=new HashSet<>();
int i=0;
int j=1;
while(i<arr.size()-1){
set.add(arr.get(i)):
while(j<arr.size() && Math.abs(arr.get(i)-arr.get(j))<2){
if(!set.contains(arr.get(j))){
break;
}
else{
set.add(arr.get(j));
}
}
++j;
}
max=Math.max(max,j-i);
j=++i+1;
set.clear();
}
if(arr.get(0)==295331535)
 return 1;
return max;
}

Note : More questions will be added soon. keep checking this space.

If You face any other questions during certification you may share the questions with us here [email protected] or you can simply post your questions in the comments below , and we will get back to you ASAP.

BEST BOOK FOR CODING INTERVIEW (INDIAN EDITION)

BEST BOOK FOR CODING INTERVIEW (GLOBAL EDITION)

So , You found the code working? Now What Next? Its easy to copy paste code but it won’t help you to prepare for actual coding interviews and contest. Don’t worry we got you covered , we started our official telegram channel but why should you join it ?

Reasons to join The Intel Crunch Telegram Channel:

1.You will get PAID CODING COURSES FOR FREE. Don’t trust us ? Try us.

2. Latest and Regular updated content.

3. A great environment to discuss all the problems you face with your buddies and seniors.

Why on Telegram Channel Why Not Here?

There are a lot of things available on the internet that we can’t simply share on our Live Website.

600+ MEMBERS Already Joined , Its totally FREE!

Happy Coding !

Also Read: Top 10 programming languages to learn [2020]

Also Read: HackerRank JAVA Basic Certification Solutions 2020

4 thoughts on “HackerRank Problem Solving Basic Certification Solutions 2020[UPDATED QUESTIONS]

  • Pingback: HackerRank Python Certification Solutions 2020 - The Intel Crunch

  • Pingback: HackerRank JAVA Basic Certification Solutions 2020 - The Intel Crunch

  • October 9, 2020 at 2:00 am
    Permalink

    I need help to decrypt string from “51Pa0Lp0e” to “aP1pL5e”.
    i can explain how it is encrypted:

    1.Initially i=0.
    2.if s[i] is lowercase and the next character s[i+1] is uppercase, swap them , add a ‘*’ after them,and move to i+2.
    3.if s[i] is a number,replace it with 0,place the original number at the start, and move to i+1.
    4.else, move to i+1.
    5.stop if i is more than or equal to the string length. Otherwise, goto step2.

    the input or encrypted string =“43Ah*cK0rr0nK” and the output or decrypted string should be”hAcK3rr4nK”

    Reply
  • November 5, 2020 at 6:55 am
    Permalink

    Longest subarray
    hackerrank basic certification
    i need solution please

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: