
算法
_dingzhen
一枚可爱又迷人的后端coder!
展开
-
Longest Substring Without Repeating Characters滑动窗口算法
Leetcode: Longest Substring Without Repeating CharactersGiven a string s, find the length of the longest substring without repeating characters.Example 1:Input: s = "abcabcbb"Output: 3Explanation: The answer is "abc", with the length of 3.Example 2:原创 2020-11-04 00:41:31 · 286 阅读 · 0 评论 -
Maximum Subarray
Maximum Subarraydescription:Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.Example:Input: [-2,1,-3,4,-1,2,1...原创 2020-04-07 22:43:52 · 313 阅读 · 0 评论 -
30-Day LeetCoding Challenge!
Welcome to the 30-Day LeetCoding Challenge!由于不平凡的2020疫情影响,全世界大部分人都呆在家里防止感染病毒,于是leecode发起了一个30天代码挑战,从4.1~4.30,下面我将开始挑战!Problem1: Single NumberGiven a non-empty array of integers, every element appea...原创 2020-04-01 23:21:17 · 404 阅读 · 0 评论 -
Reverse Linked List
Reverse Linked ListReverse a singly linked list.Example:Input: 1->2->3->4->5->NULLOutput: 5->4->3->2->1->NULLFollow up:A linked list can be reversed either iterat...原创 2020-03-31 18:05:05 · 290 阅读 · 0 评论 -
Integer to Roman
Integer to Romandescription:Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.Symbol ValueI 1V 5X 10L 50C...原创 2020-03-17 20:46:30 · 177 阅读 · 0 评论 -
ACM经典算法总结+代码实现~
1.数的全排列(最基础的dfs回溯)/********************************************** *Author* :coderdz *Created Time* : 2019/1/7 23:31:48*********************************************/#include <cstdi...原创 2019-01-18 21:59:18 · 1183 阅读 · 0 评论