Skip to content

hasnaties/HackerRank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HackerRank

Possible Strings

How many copies of string S can be made from the given characters of Array N?

12. Sparse Arrays

There is a collection of input strings and a collection of query strings. For each query string, determine how many times it occurs in the list of input strings. Return an array of the results.

11. Left Rotation

A left rotation operation on an array of size n shifts each of the array's elements 1 unit to the left. Given an integer, d, rotate the array that many steps left and return the result.

This problem is about implementing a dynamic array data structure. Visit the problem for details.

9. Hourglass Sum

Given a 6 * 6 Array and an hourglass in array is a subset of values with indices falling in hourglass pattern in 's graphical representation. Calculate the hourglass sum for every hourglass in array.

8. Time Conversion

Given a time in 12-hour AM/PM format, convert it to military (24-hour) time.

7. Birthday Cake Candles

You are in charge of the cake for a child's birthday. Count how many candles are tallest.

6. miniMaxSum

Given five positive integers, find the minimum and maximum values that can be calculated by summing exactly four of the five integers.

5. Staircase

Display a staircase from where the top is on right.

4. Plus Minus

Given an array of integers, calculate the ratios of its elements that are positive, negative, and zero.

3. Diagonal Differences

Given a square matrix, calculate the absolute difference between the sums of its diagonals.

2. A very Big Sum

In this challenge, you are required to calculate and print the sum of the elements in an array, keeping in mind that some of those integers may be quite large.

1. Reverse Array

Reverse an array of integers.

About

Me and my amateur solutions to HackerRank problems.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors