HackerRank

HackerRank: Merge the Tools! Notes Members Public

Background This article was written down when I was doing a Python challenge on HackerRank: "Merge the Tools!". Merge the Tools! | HackerRankSplit a string into subsegments of length $k$, then print each subsegment with any duplicate characters stripped out.HackerRank Problem To help you understand this problem, I

Ran
Ran
Python

HackerRank: The Minion Game Notes Members Public

Background This article was written down when I was doing a Python challenge on HackerRank: The Minion Game. Hints If you haven't passed this question and want to have some hints. There are two hints I think might be helpful: * The solution can be done with one loop

Ran
Ran
Python

HackerRank: Capitalize! Notes Members Public

Background This article was written down when I was doing a Python challenge on HackerRank: Capitalize! [https://www.hackerrank.com/challenges/capitalize/problem]. It was not a hard problem, but I got the "Wrong Answer" three times... The main problem is that I am not familiar with the

Ran
Ran
Python

HackerRank: Alphabet Rangoli Notes Members Public

Background This article was written down when I was doing the Python challenge on HackerRank: Alphabet Rangoli [https://www.hackerrank.com/challenges/alphabet-rangoli/problem]. Although I passed all the tests quickly, my solution looked dirty and not clean enough. Thus I tried to simplify my solution after getting some insights

Ran
Ran
Python

HackerRank: Designer Door Mat Notes Members Public

Background I think the "Designer Door Mat [https://www.hackerrank.com/challenges/designer-door-mat/problem]" is suitable for serving as a practice f [https://www.hackerrank.com/challenges/text-alignment/problem]or your understanding of the Python center() method. Problem The problem gives you two number N and M where

Ran
Ran
Python

Python: raw_input(), input(), strip() and split() Explanations Members Public

Background This article was written down when I was doing the HackerRank Python challenge: Find a string. I think it would help explain the difference between raw_input() and input() for others. You will see raw_input() a lot in the HackerRank Editorial section since the solution was written with

Ran
Ran
Python

HackerRank: Text Alignment Notes Members Public

Background This article is about a Python challenge on HackerRank: Text Alignment [https://www.hackerrank.com/challenges/text-alignment/problem]. We can definitely keep trying until we get the correct answer for this one. But I think that is kind of boring, and I really want to understand the thoughts behind

Ran
Ran
HackerRank