[Python] Checkio Solution 解答 – Index Power

You are given an array with positive numbers and a number N. You should find the N-th power of the element in the array with the index N. If N is outside of the array, then return -1. Don't forget that the first element has the index 0.

閱讀更多

[Python] Checkio Solution 解答 – Fizz Buzz

"Fizz buzz" is a word game we will use to teach the robots about division. Let's learn computers.

閱讀更多

[Python] Checkio Solution 解答 – Long Repeat

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.

閱讀更多

[Python] Checkio Solution 解答 – Monkey Typing

The infinite monkey theorem states that a monkey hitting keys at random on a typewriter keyboard for an infinite length of time will almost surely type out a given text, such as the complete works of John Wallis, or more likely, a Dan Brown novel.

閱讀更多

[Python] Checkio Solution 解答 – House Password

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.

閱讀更多

[Python] Checkio Solution 解答 – Non-Unique Elements

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].

閱讀更多

[Python] Checkio Solution 解答 - The Most Wanted Letter

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