摘要: leetcode刷题笔记十六 接近三数之和 Scala版本 源地址: "16. 最接近的三数之和" 问题描述: Given an array of n integers and an integer , find three integers in such that the sum is clos 阅读全文
posted @ 2020-04-16 21:33 ganshuoos 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑