Skip to content
View gabrielagrandat's full-sized avatar

Block or report gabrielagrandat

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Maximum Streaks - HackerRank A coin... Maximum Streaks - HackerRank A coin was tossed numerous times. You need to find the longest streak of tosses resulting Heads and the longest streak of tosses resulting in Tails. Formally, given the results of tosses of a coin, find the maximum number of consecutive Heads and the maximum number of consecutive Tails .
    1
    import java.util.ArrayList;
    2
    import java.util.List;
    3
    
                  
    4
    public class Main {
    5
    
                  
  2. FunAnagrams - Hackerrank FunAnagrams - Hackerrank
    1
    /*
    2
     * To change this license header, choose License Headers in Project Properties.
    3
     * To change this template file, choose Tools | Templates
    4
     * and open the template in the editor.
    5
     */
  3. Minimum Swaps - HackerRank You are g... Minimum Swaps - HackerRank You are given an unordered array consisting of consecutive integers [1, 2, 3, ..., n] without any duplicates. You are allowed to swap any two elements. You need to find the minimum number of swaps required to sort the array in ascending order.
    1
    package minimunSwaps;
    2
    
                  
    3
    import java.util.HashMap;
    4
    import java.util.Map.Entry;
    5