目前分類:LeetCode解題系列 (12)

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

【原題目】:

Given a valid (IPv4) IP address, return a defanged version of that IP address.

文章標籤

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

【原題目】:

International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: "a" maps to ".-", "b" maps to "-...", "c" maps to "-.-.", and so on.

文章標籤

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

【原題目】:

The Fibonacci numbers, commonly denoted F(n) form a sequence, called the Fibonacci sequence, such that each number is the sum of the two preceding ones, starting from 0 and 1. That is,

文章標籤

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

【原題目】:

We are given two strings, A and B.

文章標籤

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

【原題目】:

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

文章標籤

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

【原題目】:

Given a 32-bit signed integer, reverse digits of an integer.

文章標籤

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

【原題目】:

There is a robot starting at position (0, 0), the origin, on a 2D plane. Given a sequence of its moves, judge if this robot ends up at (0, 0) after it completes its moves.

文章標籤

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

【原題目】:

In a array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeated N times.

文章標籤

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

【原題目】:

Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A.

文章標籤

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

【原題目】:

Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.

文章標籤

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

【原題目】:

Let's call an array A a mountain if the following properties hold:

文章標籤

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

【原題目】:

Every email consists of a local name and a domain name, separated by the @ sign.

文章標籤

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

Close

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

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

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

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

reload

請輸入左方認證碼:

看不懂,換張圖

請輸入驗證碼