目前分類:[技術分享] (126)

瀏覽方式: 標題列表 簡短摘要

You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/vertically (not diagonally). The grid is completely surrounded by water, and there is exactly one island (i.e., one or more connected land cells). The island doesn't have "lakes" (water inside that isn't connected to the water around the island). One cell is a square with side length 1. The grid is rectangular, width and height don't exceed 100. Determine the perimeter of the island.

 

Eric 發表在 痞客邦 留言(0) 人氣()

 

 

Eric 發表在 痞客邦 留言(2) 人氣()

Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase.

 

Eric 發表在 痞客邦 留言(0) 人氣()

int DeviceConfig::GetFolderCount(CString target_folder)

{

Eric 發表在 痞客邦 留言(0) 人氣()

 以下未經說明,listctrl默認view 風格為report 

 

Eric 發表在 痞客邦 留言(0) 人氣()

 

上帝幫你關了一扇門,就會幫你開一扇窗,

Eric 發表在 痞客邦 留言(3) 人氣()

 

 

文章標籤

Eric 發表在 痞客邦 留言(0) 人氣()

 

其實這一題似乎蠻常看到的,

Eric 發表在 痞客邦 留言(0) 人氣()

 

 

文章標籤

Eric 發表在 痞客邦 留言(0) 人氣()

 

 

文章標籤

Eric 發表在 痞客邦 留言(0) 人氣()

 

 

Eric 發表在 痞客邦 留言(0) 人氣()

 

 

Eric 發表在 痞客邦 留言(0) 人氣()

 

 

Eric 發表在 痞客邦 留言(0) 人氣()

 

 

Eric 發表在 痞客邦 留言(0) 人氣()

Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the original place.

The move sequence is represented by a string. And each move is represent by a character. The valid robot moves are R (Right), L(Left), U (Up) and D (down). The output should be true or false representing whether the robot makes a circle.

Eric 發表在 痞客邦 留言(0) 人氣()

804. Unique Morse Code Words

文章標籤

Eric 發表在 痞客邦 留言(0) 人氣()

循環冗餘碼(Cyclical Redundancy Check)

 

文章標籤

Eric 發表在 痞客邦 留言(2) 人氣()

說明 :

所謂的Hamming code 主要是一種偵測法,它利用資料流中插入一些驗證碼的方式來做一個檢查和驗算。

文章標籤

Eric 發表在 痞客邦 留言(5) 人氣()

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

Eric 發表在 痞客邦 留言(0) 人氣()

 

一樣超簡單的方法 , 來吧 !

Eric 發表在 痞客邦 留言(0) 人氣()

Close

您尚未登入,將以訪客身份留言。亦可以上方服務帳號登入留言

請輸入暱稱 ( 最多顯示 6 個中文字元 )

請輸入標題 ( 最多顯示 9 個中文字元 )

請輸入內容 ( 最多 140 個中文字元 )

reload

請輸入左方認證碼:

看不懂,換張圖

請輸入驗證碼