Coding Noting

Web Developer becoming...


  • Home

  • Archives

Active Record 關聯式設計

Posted on 2017-11-22 | In Ruby-on-Rails
ActiveRecord是一種ORMORM(Object-Relational-Mapping)讓我們可以利用物件導向的概念來操作關聯式資料庫,不需要透過繁瑣的SQL語法就能達成同樣的效果,對於維護程式也是比較容易的。但根據 抽象滲漏法則 所述:所有重大的抽象機制在某種程式上都是有漏洞的。ActiveRecord簡化了我們操作SQL的方便性,但相對的其效率就不會比直接使用SQL來得高,且可能也有它 ...
Read more »

Matplotlib

Posted on 2017-11-21 | In Python
Matplotlib 讓 Data能夠以視覺化、圖像化的方式呈現。在這裡先介紹 matplotlib內的 pyplot API,它強大的地方在於可以用簡單的函式就快速產生我們想要的圖像。使用import matplotlib.pyplot as plt方式匯入pyplot模組 匯入資料及呈現若已經俱備了x及y兩筆資料,那麼透過以下方式就能快速產生圖像: 12plt.plot(x,y) # 將x ...
Read more »

Equal Sides Of An Array

Posted on 2017-11-10 | In Algorithms Thinking
題目You are going to be given an array of integers(arr). Your job is to take that array and find an index N where the sum of the integers to the left of N is equal to the sum of the integers to the righ ...
Read more »

IQ Test

Posted on 2017-11-09 | In Algorithms Thinking
題目Bob is preparing to pass IQ test. The most frequent task in this test is to find out which one of the given numbers differs from the others. Bob observed that one number usually differs from the oth ...
Read more »

Two Sum

Posted on 2017-11-09 | In Algorithms Thinking
題目Given an array of integers(nums), return indices of the two numbers such that they add up to a specific target(target).You may assume that each input would have exactly one solution, and you may not ...
Read more »
123
Lin Chia-Hung

Lin Chia-Hung

11 posts
4 categories
21 tags
© 2018 Lin Chia-Hung
Powered by Hexo
|
Theme — NexT.Muse