![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode算法
文章平均质量分 55
XRYMIBZ
程序员就是我,我就是程序员
展开
-
(leetcode)1. 查找数组中两个数之和为给定值Two Sum---Java
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.给定一个整数数组,返回两个数字的索引,使原创 2017-04-23 11:07:12 · 2505 阅读 · 0 评论 -
(leetcode)2. 两个链表相加Add Two Numbers--Java
You are given two linked lists representing two non-negative numbers. 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 link原创 2017-04-23 11:08:19 · 1156 阅读 · 0 评论 -
(leetcode)3.一个数组的最长子列Longest Substring Without Repeating Characters--Java
Longest Substring Without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc", whic原创 2017-04-24 13:58:49 · 386 阅读 · 0 评论 -
(leetcode)4.两个有序数列中间的第n个数 Median of Two Sorted Arrays--Java
There are two sorted arrays nums1 and nums2 of size m and n respectively.There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted ar原创 2017-04-24 14:01:25 · 372 阅读 · 0 评论 -
(leetcode)5.最大回文子字符串 Longest Palindromic Substring--Java
翻译给定一个字符串S,找出它的最大回文子字符串。你可以假定S的最大长度为1000,并且这里存在唯一一个最大回文子字符串。123123原文Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and原创 2017-04-24 15:44:38 · 294 阅读 · 0 评论 -
关于cpu分段的段地址计算
《微机原理》这本课程学过,不过后来我忘记了。今天复习的时候,作为学渣的我解了好大一个疑惑。书上说,8086CPU有16位的数据总线和20位的地址总线。所以,为了能让16位的cpu能够驱动20位的内存,采用了分段的形式。原理和内容都在这里,不详细展开了段寄存器-百度百科分段的地址怎么计算呢:我们知道段寄存器是16位的,16为原创 2017-05-17 17:12:52 · 3391 阅读 · 0 评论