This mission is the first one of the series. Here you should find the length of the longest substring that consists of the same letter. For example, line "aaabbcaaaa" contains four substrings with the same letters "aaa", "bb","c" and "aaaa". The last substring is the longest one which makes it an answer.閱讀更多
Stephan and Sophia forget about security and use simple passwords for everything. Help Nikola develop a password security check module. The password will be considered strong enough if its length is greater than or equal to 10 symbols, it has at least one digit, as well as containing one uppercase letter and one lowercase letter in it. The password contains only ASCII latin letters or digits.閱讀更多
You are given a non-empty list of integers (X). For this task, you should return a list consisting of only the non-unique elements in this list. To do so you will need to remove all unique elements (elements which are contained in a given list only once). When solving this task, do not change the order of the list. Example: [1, 2, 3, 1, 3] 1 and 3 non-unique elements and result will be [1, 3, 1, 3].閱讀更多
You are given a text, which contains different english letters and punctuation symbols. You should find the most frequent letter in the text. The letter returned must be in lower case.
While checking for the most wanted letter, casing does not matter, so for the purpose of your search, "A" == "a". Make sure you do not count punctuation symbols, digits and whitespaces, only letters.
能不能準確分析價格未來的動向是成為一個成功的投資者的關鍵，目前主要是有兩大分析方法，一是技術分析（technical，看走勢圖的），二是基本面分析（fundamental，看新聞和財政報告的）。筆者從小就不愛看字（所以這幾年跳出來寫 VanTopics 已經是很大的進步了），對於基本面分析真的是一點興趣都沒有，於是自然而然的就喜歡上技術分析。經過多年的波折和學習經驗，用過了不少指標（Indicator），最後發現其實簡單的價格走勢 （Price Action）最好，所以筆者準備寫幾篇關於價格走勢的文章，希望可以幫助更多喜歡技術分析的投資者。閱讀更多
Copyright © Vantopics