原创 462. Minimum Moves to Equal Array Elements II

原題網址:https://leetcode.com/problems/minimum-moves-to-equal-array-elements-ii/ Given a non-empty integer array, find th

原创 LeetCode 463. Island Perimeter

原題網址:https://leetcode.com/problems/island-perimeter/ You are given a map in form of a two-dimensional integer grid wh

原创 LeetCode 465. Optimal Account Balancing

原題網址:https://leetcode.com/problems/optimal-account-balancing/ A group of friends went on holiday and sometimes lent e

原创 389. Find the Difference

原題網址:https://leetcode.com/problems/find-the-difference/ Given two strings s and t which consist of only lowercase let

原创 409. Longest Palindrome

原題網址:https://leetcode.com/problems/longest-palindrome/ Given a string which consists of lowercase or uppercase letter

原创 405. Convert a Number to Hexadecimal

原題網址:https://leetcode.com/problems/convert-a-number-to-hexadecimal/ Given an integer, write an algorithm to convert i

原创 387. First Unique Character in a String

原題網址:https://leetcode.com/problems/first-unique-character-in-a-string/ Given a string, find the first non-repeating c

原创 LeetCode 441. Arranging Coins

原題網址:https://leetcode.com/problems/arranging-coins/ You have a total of n coins that you want to form in a staircase

原创 415. Add Strings

原題網址:https://leetcode.com/problems/add-strings/ Given two non-negative numbers num1 and num2 represented as string,

原创 401. Binary Watch

原題網址:https://leetcode.com/problems/binary-watch/ A binary watch has 4 LEDs on the top which represent the hours (0-11

原创 LeetCode 459. Repeated Substring Pattern

原題網址:https://leetcode.com/problems/repeated-substring-pattern/ Given a non-empty string check if it can be constructe

原创 LeetCode 455. Assign Cookies

原題網址:https://leetcode.com/problems/assign-cookies/ Assume you are an awesome parent and want to give your children so

原创 404. Sum of Left Leaves

原題網址:https://leetcode.com/problems/sum-of-left-leaves/ Find the sum of all left leaves in a given binary tree. Examp

原创 383. Ransom Note

原題網址:https://leetcode.com/problems/ransom-note/ Given an arbitrary ransom note string and another string containing l

原创 LeetCode 408. Valid Word Abbreviation

原題網址:https://leetcode.com/problems/valid-word-abbreviation/ Given a non-empty string s and an abbreviation abbr, ret