Skip to content

withexample.com

Motherload of coding examples
  • With Example
  • Interview Questions
    • HackerRank
  • DS and Algo
    • DS And Algo
  • General
    • Java
    • JavaScript
  • Miscellaneous

Category: HackerRank

Depth Sum or Nested List Weight Sum ( Linked In Interview question)

August 31, 2017 admin Leave a comment

Problem: Given the nested list of integer, calculate the depth sum. Sample Input: [[1,1], 2, [1,1]] Output: 10 Explanation: 1* 2 +…

Continue Reading →

Posted in: HackerRank, Java Filed under: Java Interview Questions

Find Minimum Insertions to form a palindrome string ( Hacker rank interview question)

August 29, 2017 admin Leave a comment

This question was asked in hacker rank to fix the minor bug in the program such a way it passes…

Continue Reading →

Posted in: HackerRank, Java Filed under: Hackerrank, Java Interview Questions

Water Container Problem (Java)

August 27, 2017 admin Leave a comment

Problem: Given an array of heights, find out the max area that can be formed between any two bars. Solution: The…

Continue Reading →

Posted in: HackerRank, Java Filed under: Hackerrank, Java Interview Questions

Parentheses / Brackets Check (Hacker Rank Interview Questions)

July 27, 2017 admin Leave a comment

Match the braces and verify whether all the opening braces has the closing braces in right order. Input: String of…

Continue Reading →

Posted in: HackerRank, Java Filed under: Hackerrank, Java Interview Questions

The caterpillar problem (Hacker Rank Interview Questions)

July 26, 2017 admin Leave a comment

The caterpillar problem. Input: int[] caterPillar = {2,4,5} int totalLeaves = 10 Here, you will have fixed size array with integer elements…

Continue Reading →

Posted in: HackerRank, Java Filed under: Hackerrank, Harker Rank, Java

Total Number of Perfect Squares (Hacker Rank Interview Question)

admin Leave a comment

Problem: Finding the number of perfect squares between two integer range. Input: first integer and last integer ->  int startInteger,…

Continue Reading →

Posted in: HackerRank, Java Filed under: Hackerrank, Java, Java Interview Questions

Find unique pairs with k difference (KDiff) (Hacker Rank Interview Question)

admin Leave a comment

Input: Integer array Diff: Integer difference Output: Total number of unique pairs having difference provided in the input. Here in…

Continue Reading →

Posted in: HackerRank, Java Filed under: Hackerrank, Java, Java Interview Questions

Count Duplicate Pairs of Integer in a given array (Hacker Rank Interview Questions)

admin Leave a comment

Input: Integer array with 0 or more repeated values. Output: Total number of duplicate numbers present in the given array…

Continue Reading →

Posted in: HackerRank, Java Filed under: Hackerrank, interviewquestions, Java, Java Interview Questions

Print all the possible permutations by adding X and Y (Hacker Rank Interview Question)

July 22, 2017 admin Leave a comment

Input: X and Y are integer values, where X < Y N is the length of permutation Output: To print…

Continue Reading →

Posted in: HackerRank, Java Filed under: Hackerrank, Java, Java Interview Questions

Slice Down problem in Java (Hacker Rank Interview Questions)

admin Leave a comment

Input: array of integer value Output: print each iteration by subtracting the smallest elements till array becomes empty For example:…

Continue Reading →

Posted in: HackerRank, Java Filed under: Harker Rank, interviewquestions, Java, Slice Down Hacker Rank

Posts navigation

← Older posts

Quick Links

Algorithm anagrams Binary Search Tree binarysearchtree bst Calculator Data Structure debounce Fibonacci Fibonacci Java Fibonacci Multi Threading FrontEnd front end FrontEnd interview questions Gradle group anagrams Hackerrank Harker Rank html Integration interviewquestions interview questions Java java algorithm Java Interview Questions javascript JavaScript interview questions Jmeter LeetCode MongoDB Neo4j Preorder Binary Search Tree Preorder BST R Slice Down Hacker Rank wcag web accessibility

Login

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
Copyright © 2023 withexample.com — Primer theme by GoDaddy