摘要: 【吴恩达团队自然语言处理第四课】NLP中的注意力模型 神经网络机器翻译 Outline Introduction to Neural Machine Translation Seq2Seq model and its shortcomings Solution for the information 阅读全文
posted @ 2022-03-23 23:12 付玬熙 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 42. 接雨水 难度困难 给定 n 个非负整数表示每个宽度为 1 的柱子的高度图,计算按此排列的柱子,下雨之后能接多少雨水。 示例 1: 输入:height = [0,1,0,2,1,0,1,3,2,1,2,1] 输出:6 解释:上面是由数组 [0,1,0,2,1,0,1,3,2,1,2,1] 表示 阅读全文
posted @ 2022-03-23 21:02 付玬熙 阅读(80) 评论(0) 推荐(0) 编辑
摘要: 41. 缺失的第一个正数 给你一个未排序的整数数组 nums ,请你找出其中没有出现的最小的正整数。 请你实现时间复杂度为 O(n) 并且只使用常数级别额外空间的解决方案。 示例 1: 输入:nums = [1,2,0] 输出:3 示例 2: 输入:nums = [3,4,-1,1] 输出:2 提示 阅读全文
posted @ 2022-03-23 16:21 付玬熙 阅读(32) 评论(0) 推荐(0) 编辑