Given a blacklist B containing unique integers from [0, N), write a function to ret…
分类:LeetCode
[Leetcode] Self Dividing Numbers 自除数
Self Dividing Numbers 请访问最新更新版本:https://yanjia.me/zh/2018/11/… A self-dividing number is a number that i…
383.Ransom Note
题目 Given an arbitrary ransom note string and another string containing letters from all the magazines, write a…
12.整数转罗马数字(Swift版)
一、题目 罗马数字包含以下七种字符: I, V, X, L,C,D 和 M。 字符 数值 I 1 V 5 X 10 L 50 C 100 D 500 M 1000 例如, 罗马数字 2 写做 II ,即为两个并列的 1。…
679. 24 Game
You have 4 cards each containing a number from 1 to 9. You need to judge whether they could operated through *…
[LeetCode By Go 53]628. Maximum Product of Three Numbers
题目 Given an integer array, find three numbers whose product is maximum and output the maximum product. Example…
Binary Tree Maximum Path Sum II
Given a binary tree, find the maximum path sum from root. The path may end at any node in the tree and contain…
Leetcode 171.Excel Sheet Column Number
Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corr…
243. Shortest Word Distance - easy
/* 243. Shortest Word Distance Total Accepted: 10375 Total Submissions: 22370 Difficulty: Easy Given a list of…
[LeetCode] Design HashMap 设计HashMap
Design a HashMap without using any built-in hash table libraries. To be specific, your design shou…
[Leetcode] Matchsticks to Square 火柴拼方形
Matchsticks to Square Remember the story of Little Match Girl? By now, you know exactly what matchsticks the l…
LeetCode | Trapping Rain Water(柱子间存储的水容量)
Given n non-negative integers representing an elevation map where the width of each bar is 1, comput…