HackerRank Cpp

Print Pretty in C++ – Hacker Rank Solution

Problem Your manager gave you a text file with many lines of numbers to format and print. For each row of 3 space-separated doubles, format and print the numbers using the specifications in the Output Format section below. Input Format : The first line contains an integer, T, the number of test cases.Each of the T subsequent lines describes a …

Print Pretty in C++ – Hacker Rank Solution Read More »

Lower Bound-STL in C++ – Hacker Rank Solution

Problem You are given N integers in sorted order. Also, you are given Q queries. In each query, you will be given an integer and you have to tell whether that integer is present in the array. If so, you have to tell at which index it is present and if it is not present, you have to tell …

Lower Bound-STL in C++ – Hacker Rank Solution Read More »