<?php 

function haha($a,$b){

學習程式 發表在 痞客邦 留言(0) 人氣()

<?php 
class B{

學習程式 發表在 痞客邦 留言(0) 人氣()

<?php 
class A{

學習程式 發表在 痞客邦 留言(0) 人氣()

  • for($j=1;$j<=2;$j++){
        for($i=1;$i<10;$i++){

學習程式 發表在 痞客邦 留言(0) 人氣()

 

There are N gas stations along a circular route, where the amount of gas at station i is gas[i].

You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to its next station (i+1). You begin the journey with an empty tank at one of the gas stations.

學習程式 發表在 痞客邦 留言(0) 人氣()

[[1,3,1],
 [1,5,1],
 [4,2,1]]

想成九宮格

1→3→1→1→1  是最小路徑

學習程式 發表在 痞客邦 留言(0) 人氣()

單行可不加

多行加了會抓不到

學習程式 發表在 痞客邦 留言(0) 人氣()

class Solution {
public:

學習程式 發表在 痞客邦 留言(0) 人氣()

#include <iostream>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

學習程式 發表在 痞客邦 留言(0) 人氣()

1.編譯器自己會,產生

2.可以自己寫

學習程式 發表在 痞客邦 留言(0) 人氣()