算法
文章平均质量分 81
leetcode刷题等积累,算法积累,不断提升自己的逻辑思维能力。
Andya_net
公众号:CodingTechWork
觉得为时已晚的时候,恰恰是最早的时候。
展开
-
算法—学习、练习和总结
学习、联系和总结算法,让思维变得更敏捷!原创 2022-05-21 23:30:42 · 388 阅读 · 0 评论 -
算法—两个有序数组的中位数 Median of Two Sorted Arrays
题目There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).You may assume nums1 and nums2 cannot be both empty.给定两个大小为 m 和 n 的正序(从小到大)数组 nu原创 2020-06-02 19:14:49 · 284 阅读 · 0 评论 -
leetcode算法—无重复字符的最长子串 Longest Substring Without Repeating Characters
题目Longest Substring Without Repeating Characters:Given a string, find the length of the longest substring without repeating characters.无重复字符的最长子串:给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。Example 1:Input: "abcabcbb"Output: 3 Explanation: The answer is "abc"原创 2020-06-02 08:50:15 · 316 阅读 · 0 评论 -
leetcode算法—两数相加 Add Two Numbers
题目You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list.You may assume the two numbers do原创 2020-06-02 08:49:36 · 314 阅读 · 0 评论 -
leetcode算法—两数之和 Two Sum
题目Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not use the same element twice.给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为原创 2020-06-02 08:49:00 · 409 阅读 · 0 评论