摘要: leetcode刷题笔记十五 三数之和 Scala版本 源地址:15. 三数之和 问题描述: Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all 阅读全文
posted @ 2020-04-16 19:37 ganshuoos 阅读(160) 评论(0) 推荐(0) 编辑
摘要: leetcode刷题笔记十四 最长公共前缀 Scala版本 源地址:最长公共前缀 问题描述: Write a function to find the longest common prefix string amongst an array of strings. If there is no c 阅读全文
posted @ 2020-04-16 00:17 ganshuoos 阅读(129) 评论(0) 推荐(0) 编辑
摘要: leetcode刷题笔记十三 罗马数字转数字 Scala版本 源地址:罗马数字转数字 问题描述: oman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 阅读全文
posted @ 2020-04-15 16:50 ganshuoos 阅读(138) 评论(0) 推荐(0) 编辑
摘要: leetcode刷题笔记十二 整数转罗马数字 Scala版本 源地址:整数转罗马数字 问题描述: Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 阅读全文
posted @ 2020-04-13 21:40 ganshuoos 阅读(268) 评论(0) 推荐(0) 编辑
摘要: leetcode刷题笔记十一 盛最多水的容器 Scala版本 源地址:盛最多水的容器 问题描述: Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). 阅读全文
posted @ 2020-04-13 20:13 ganshuoos 阅读(105) 评论(0) 推荐(0) 编辑
摘要: leetcode刷题笔记十 正则表达式 Scala版本 源地址:leetcode刷题笔记十 正则表达式 Scala版本 问题描述: Given an input string (s) and a pattern (p), implement regular expression matching w 阅读全文
posted @ 2020-04-13 02:37 ganshuoos 阅读(145) 评论(0) 推荐(0) 编辑
摘要: leetcode刷题笔记九 回文数 Scala版本 源地址:leetcode刷题笔记九 回文数 Scala版本 问题描述: Determine whether an integer is a palindrome. An integer is a palindrome when it reads t 阅读全文
posted @ 2020-04-11 23:14 ganshuoos 阅读(284) 评论(0) 推荐(0) 编辑
摘要: leetcode刷题笔记八 字符串转整性 Scala版本 源地址: leetcode刷题笔记八 字符串转整性 Scala版本 问题描述: Only the space character ' ' is considered as whitespace character. Assume we are 阅读全文
posted @ 2020-04-11 00:18 ganshuoos 阅读(116) 评论(0) 推荐(0) 编辑
摘要: leetcode刷题笔记七 整数反转 Scala版本 源地址:(leetcode刷题笔记七 整数反转 Scala版本)[https://leetcode.com/problems/reverse-integer/submissions/] 问题描述: Given a 32-bit signed in 阅读全文
posted @ 2020-04-08 22:33 ganshuoos 阅读(245) 评论(0) 推荐(0) 编辑
摘要: leetcode刷题笔记六 Z字型转换 Scala版本 源地址:(leetcode刷题笔记六 Z字型转换 Scala版本)[https://leetcode.com/problems/zigzag-conversion/submissions/] 问题描述: The string "PAYPALIS 阅读全文
posted @ 2020-04-08 01:08 ganshuoos 阅读(118) 评论(0) 推荐(0) 编辑