알고리즘/알고리즘 문제풀이
-
https://www.hackerrank.com/challenges/one-week-preparation-kit-time-conversion Time Conversion | HackerRank Convert time from an AM/PM format to a 24 hour format. www.hackerrank.com #include using namespace std; /* * Complete the 'timeConversion' function below. * * The function is expected to return a STRING. * The function accepts STRING s as parameter. */ string timeConversion(string s) { str..
[HackerRank] Time Conversionhttps://www.hackerrank.com/challenges/one-week-preparation-kit-time-conversion Time Conversion | HackerRank Convert time from an AM/PM format to a 24 hour format. www.hackerrank.com #include using namespace std; /* * Complete the 'timeConversion' function below. * * The function is expected to return a STRING. * The function accepts STRING s as parameter. */ string timeConversion(string s) { str..
2023.10.19 -
https://www.hackerrank.com/challenges/one-week-preparation-kit-mini-max-sum Mini-Max Sum | HackerRank Find the maximum and minimum values obtained by summing four of five integers. www.hackerrank.com #include using namespace std; string ltrim(const string &); string rtrim(const string &); vector split(const string &); /* * Complete the 'miniMaxSum' function below. * * The function accepts INTEGE..
[HackerRank] Mini-Max-Sumhttps://www.hackerrank.com/challenges/one-week-preparation-kit-mini-max-sum Mini-Max Sum | HackerRank Find the maximum and minimum values obtained by summing four of five integers. www.hackerrank.com #include using namespace std; string ltrim(const string &); string rtrim(const string &); vector split(const string &); /* * Complete the 'miniMaxSum' function below. * * The function accepts INTEGE..
2023.10.19 -
https://www.hackerrank.com/challenges/one-week-preparation-kit-plus-minus Plus Minus | HackerRank Calculate the fraction of positive, negative and zero values in an array. www.hackerrank.com #include using namespace std; string ltrim(const string &); string rtrim(const string &); vector split(const string &); /* * Complete the 'plusMinus' function below. * * The function accepts INTEGER_ARRAY ar..
[HackerRank] Plus Minushttps://www.hackerrank.com/challenges/one-week-preparation-kit-plus-minus Plus Minus | HackerRank Calculate the fraction of positive, negative and zero values in an array. www.hackerrank.com #include using namespace std; string ltrim(const string &); string rtrim(const string &); vector split(const string &); /* * Complete the 'plusMinus' function below. * * The function accepts INTEGER_ARRAY ar..
2023.10.19 -
https://www.hackerrank.com/challenges/arrays-ds Arrays - DS | HackerRank Accessing and using arrays. www.hackerrank.com #include #include using namespace std; string ltrim(const string &); string rtrim(const string &); vector split(const string &); /* * Complete the 'reverseArray' function below. * * The function is expected to return an INTEGER_ARRAY. * The function accepts INTEGER_ARRAY a as p..
[HackerRank] arrays-dshttps://www.hackerrank.com/challenges/arrays-ds Arrays - DS | HackerRank Accessing and using arrays. www.hackerrank.com #include #include using namespace std; string ltrim(const string &); string rtrim(const string &); vector split(const string &); /* * Complete the 'reverseArray' function below. * * The function is expected to return an INTEGER_ARRAY. * The function accepts INTEGER_ARRAY a as p..
2023.10.19 -
https://www.hackerrank.com/challenges/2d-array/problem 2D Array - DS | HackerRank How to access and use 2d-arrays. www.hackerrank.com #include using namespace std; string ltrim(const string &); string rtrim(const string &); vector split(const string &); /* * Complete the 'hourglassSum' function below. * * The function is expected to return an INTEGER. * The function accepts 2D_INTEGER_ARRAY arr ..
[HackerRank] 2d arrayhttps://www.hackerrank.com/challenges/2d-array/problem 2D Array - DS | HackerRank How to access and use 2d-arrays. www.hackerrank.com #include using namespace std; string ltrim(const string &); string rtrim(const string &); vector split(const string &); /* * Complete the 'hourglassSum' function below. * * The function is expected to return an INTEGER. * The function accepts 2D_INTEGER_ARRAY arr ..
2023.10.19 -
https://www.hackerrank.com/challenges/dynamic-array Dynamic Array | HackerRank Learn to use dynamic arrays by solving this problem. www.hackerrank.com #include using namespace std; string ltrim(const string &); string rtrim(const string &); vector split(const string &); /* * Complete the 'dynamicArray' function below. * * The function is expected to return an INTEGER_ARRAY. * The function accept..
[HackerRank] Dynamic Arrayhttps://www.hackerrank.com/challenges/dynamic-array Dynamic Array | HackerRank Learn to use dynamic arrays by solving this problem. www.hackerrank.com #include using namespace std; string ltrim(const string &); string rtrim(const string &); vector split(const string &); /* * Complete the 'dynamicArray' function below. * * The function is expected to return an INTEGER_ARRAY. * The function accept..
2023.10.19