这是悦乐书的第192次更新,第195篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Easy级别的第51题(顺位题号是206)。反转单链表。例如: 输入:1-> 2-> 3-> 4->…
分类:LeetCode
LeetCode | 3. Longest Substring Without Repeating Characters
题目链接:https://leetcode.com/problems/longest-substring-without-repeating-characters/ 题目难度:Medium 题目描述: Given a s…
LeetCode刷题之Count And Say
Problem The count-and-say sequence is the sequence of integers with the first five terms as following: 1. 1 2.…
[LeetCode By Go 48]217. Contains Duplicate
题目 Given an array of integers, find if the array contains any duplicates. Your function should return true if …
6. ZigZag Conversion
6. ZigZag Conversion 题目 The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows l…
[LeetCode] Search a 2D Matrix II 搜索一个二维矩阵之二,Search a 2D Matrix 搜索一个二维矩阵
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the followin…
[LeetCode] Sparse Matrix Multiplication 稀疏矩阵相乘
Given two sparse matrices A and B, return the result of AB. You may assume that A‘s column number…
【leetcode】43. Multiply Strings 大数乘法
1. 题目 Given two numbers represented as strings, return multiplication of the numbers as a string. Note:The num…
038 Count and Say[E]
1 题目描述 The count-and-say sequence is the sequence of integers with the first five terms as following: 1. 1 2. …
Leetcode 557: Reverse words in a string III
题目 出处 Given a string, you need to reverse the order of characters in each word within a sentence while still p…
[投稿说明]
首先,多谢大家关注这个平台,并把你的学习过程分享出来。 为了让大家把这里写的更加规范,更有参考价值,现在拟定以下几条规范; 1. 这里放的是Leetcode中的题目及解法; 2. 文章中至少包含两个链接,一个是原题链接,…
LeetCode算法题-Intersection of Two Linked Lists(Java实现)
这是悦乐书的第178次更新,第180篇原创 01 看题和准备 今天介绍的是LeetCode算法题中Easy级别的第37题(顺位题号是160)。编写程序以找到两个单链表交叉的节点。例如: 以下两个链表: A: &…