Thursday, June 25, 2020

771 Jewels and Stones 暴力解

771. Jewels and Stones
Easy

You're given strings J representing the types of stones that are jewels, and S representing the stones you have.  Each character in S is a type of stone you have.  You want to know how many of the stones you have are also jewels.

The letters in J are guaranteed distinct, and all characters in J and S are letters. Letters are case sensitive, so "a" is considered a different type of stone from "A".

Example 1:

Input: J = "aA", S = "aAAbbbb"
Output: 3

Example 2:

Input: J = "z", S = "ZZ"
Output: 0

Note:

  • S and J will consist of letters and have length at most 50.
  • The characters in J are distinct.


解法:




class Solution(object):
    def numJewelsInStones(self, J, S):
        """
        :type J: str
        :type S: str
        :rtype: int
        """
        count=0
        for i in S:
            if i in J:
                count+=1
        return count

暴力解: 1365. How Many Numbers Are Smaller Than the Current Number

1365. How Many Numbers Are Smaller Than the Current Number
Easy

Given the array nums, for each nums[i] find out how many numbers in the array are smaller than it. That is, for each nums[i] you have to count the number of valid j's such that j != i and nums[j] < nums[i].

Return the answer in an array.

 

Example 1:

Input: nums = [8,1,2,2,3]
Output: [4,0,1,1,3]
Explanation: 
For nums[0]=8 there exist four smaller numbers than it (1, 2, 2 and 3). 
For nums[1]=1 does not exist any smaller number than it.
For nums[2]=2 there exist one smaller number than it (1). 
For nums[3]=2 there exist one smaller number than it (1). 
For nums[4]=3 there exist three smaller numbers than it (1, 2 and 2).

Example 2:

Input: nums = [6,5,4,8]
Output: [2,1,0,3]

Example 3:

Input: nums = [7,7,7,7]
Output: [0,0,0,0]

暴力解:




class Solution(object):
    def smallerNumbersThanCurrent(self, nums):
        """
        :type nums: List[int]
        :rtype: List[int]
        """
       
        l=[]
        for i in range(len(nums)):
            count=0
            for j in range(len(nums)):
                if nums[j]<nums[i]:
                    count+=1
            l.append(count)
        return l

簡單題目:1385. Find the Distance Value Between Two Arrays

解: 暴力解

固定任何元素在arr1
之後iterate arr2



class Solution(object):
    def findTheDistanceValue(self, arr1, arr2, d):
        """
        :type arr1: List[int]
        :type arr2: List[int]
        :type d: int
        :rtype: int
        """
       
        count=0
        for i in arr1:
            s=True
            for j in arr2:
                if abs(i-j)<=d:
                    s=False
                    break
            if s:
                count+=1
              
        return count



Wednesday, June 24, 2020

王呆頭 念佛得道

王呆頭 念佛得道,人如果傻,才會成佛作祖


亞洲有台交
所以呢
高能淨土
一輩子不管外面

人生还得过
一輩子不管外面
一輩子不管外面
一輩子不管外面
我大學常常說要隱居
卻不知道
早就隱了

不管半導體 不管純軟
不管錢
錢少少 但是走自己的路
每天都是追逐自己愛的
我年輕又求名利
又求喜歡的
兩頭空
這就是我多年領悟
如果心中有佛 西方跟東土一樣
以為佛在西方

一輩子就悟高能
成佛作祖
郭恩瑞是貪人

某些人程度超差
我大學都慘電他
某人高徒 我比他強無限輩
但是 他就悟高能
跟去英國的某人一樣 他一輩子就悟一招

我剛剛跟你對話又能發文了
yy當年問我 要不要留交大
我看不起他
我覺得我比他強 內功深奧更超過他
如今才懂
他給我一條成佛作祖
我忘了
要貪女人 要貪賺錢
最後兩頭空
以前有個故事
有個陳道人 村子有個白癡叫做王呆頭 數錢不會
就把王呆頭在走當徒弟 就天天叫他掃地撿柴 跟念佛
然後王呆頭就這樣做 跟白癡一樣
三年以後
王呆頭就哈哈大笑
變成神人
他說 師傅 你要像我這樣傻傻地做 早就悟道了
隔天呆頭就往生了
我就道人
交大就那些人就王呆頭
人傻
才能當
神人

懊悔莫及
我要是學他一樣傻
今天已經在台灣代數幾何說不定修完了
到處跟人家吵架
看到人就廢他武功
可憐阿
一被子攤
其實hy也給我路
可惜
我不懂
要海外
到頭兩頭空
我嘴巴上說我愛數學物理
其實我還是有一部分愛女人跟錢
其實展場就給我女人了
我只要展場就可以修練代數幾何成功
到美國空



Wednesday, June 17, 2020

One funnel away challenge 中文說明

想必大家都對clickfunnel 推出的產品有興趣
除了 clickfunnel本身以外 一個很有名 很暢銷的課程 (包含mp3, video 實體課本的 就是
one funnel away challenge )



網路上非常多的英文review,  我個人覺得大家整體評價都不錯,我推薦這個網站
Moneybiggest, 他的review 分門別類比較詳細,也不向其他網站有太多的東西跟問題一次集中在一個網站上。

這裡讓我用中文來解釋 One funnel away challenge 的意義還有他大概整體是如何:


首先介紹一下作者 羅素·布倫森(Russell Brunson)
Russell Brunson 是 clickfunnel這個平台的創作者,Clickfunnel 是一個平台,主要是能夠
幫助你做出很pages, 這些pages called landing pages 基本上是能夠讓你推銷自己的網路行銷課程
你的網路商店, 你的線上商店,這就是clickfunnel
作者為了讓大家了解這些方法
推出一系列產品 其中比較火紅的就是  One funnel away challenge







OFA 有三個導師 
放一下他們三個的介紹


您將在One funnel away challenge  挑戰中學到什麼?
進行廣告宣傳的絕大多數人試圖在不首先了解要領的前提下降低他人的嗓門。在任何情況下,當事情無法解決時,我們會感到困惑和過大。我們會在短時間內真正充滿活力,到那時,如果我們沒有迅速取得成果,我們就會放棄
儘管如此,當您參加OFA挑戰時,您便想出瞭如何宣傳正確的方式。此外,您可能是來自地球上最聰明的廣告商的。可以忽略感到壓倒性和擔心。無視迷失的感覺。而且,進入網絡和發展,將真正幫助您為您服務。看,沒有任何深思熟慮,什麼都不會發生,對嗎?也就是說,羅馬一天之內沒有工作。您以前聽說過,不是嗎?因此,您暫時無法期待成就。
無論如何,我知道您比那更精明。進入One funnel away challenge,我們如何以正確的方式開始工作。數據就是力量,不是嗎?而且,只要您擁有正確的數據,就可以改變業務方向和生活。我相信至少可以說是顯而易見的,對吧?好。既然我們已經全部清除了,那麼我們如何看待OFA挑戰。

基本上你會在這個課程當中學到經營網站 跟線上商業的必備知識。

課程地圖:





第一周:

Sections Included In Week 1

  1. You Must Believe
  2. Failure
  3. Who, Not How
  4. 10x Secrets
  5. Belief
  6. Catch Up Day
  7. Mission Review
第二周:

Segments Included In Week 2

  1. Offer Hacking
  2. Greatest Showman
  3. Offer Sequencing
  4. eCovers & Offer Assets
  5. Create
  6. Catch Up Day
  7. Mission Review

 

第三周:

Sections Included In Week 3

  1. Publishing
  2. Epiphany Bridge
  3. Your Origin Story
  4. Hooks, Hooks & More Hooks
  5. Catch Up Day
  6. Catch Up Day
  7. Mission Review

第四周:

Segments Included In Week 4

  1. Core Funnel Strategy
  2.  Your Share Funnel
  3. The Squeeze Page
  4. The Sales Page
  5. The OTO Page
  6. Catch Up Day
  7. Mission Review
第五周:
Sections Included In Week 5
  1. Types of Traffic
  2. Dream 100
  3. Earn Your Way In
  4. Buy Your Way In
  5. Funnel Audibles
  6. Mission Review
  7. Mission Debrief

 

更多資料與review
大家可以看看這網站蒐集各種的review of One funnel away challenge.



結束了 大量的介紹 One funnel away challenge ,如果你有興趣,可以花個100美金 去試試看,反正錢也還好,我個人買過,對於我今天的網路事業會有一定的幫助,大家可去看看。
相信自己一次,有機會改變自己。

Earning disclaimer:

While we bend over backward to guarantee that we precisely speak to all the items and administrations looked into on this site and their potential for money, it ought to be noticed that profit and salary proclamations made by moneybiggest.com and its publicists/supports are gauges just of what we figure you can procure. There is no guarantee that you will get this salary and you to acknowledge the hazard that the profit and pay explanations contrast by a person.

Similarly, as with any business, your results may shift and will be founded on your individual limit, business experience, aptitude, and level of want. There are no guarantees concerning the degree of progress you may understand. The tributes and models utilized are uncommon results, which don’t make a difference to the normal buyer and are not planned to speak to or guarantee that anybody will accomplish the equivalent or comparable results. Every individual’s prosperity relies upon their experience, commitment, want, and inspiration.

There is no affirmation that instances of past income can be copied later on. We can’t guarantee your future results as well as progress. There are some obscure dangers in business and on the web that we can’t anticipate which could decrease the results you experience. We are not liable for your activities.

The utilization of our data, items, and administrations ought to be founded all alone due to constancy and you concur that moneybiggest.com and the promoters/patrons of this site are not obligated for any achievement or disappointment of your business that is legitimately or in a roundabout way identified with the buy and utilization of our data, items, and administrations looked into or publicized on this site.