Given a singly linked list, determine if it is a palindrome. Example 1: Example 2: 题目要求:以 O(1) 的空间复杂度来求解。 切成两半,把后半段反转,然后比较两半是否相等。 时间复杂度:o(n) 空间复杂度:o(1 ...
分类:
其他好文 时间:
2019-03-19 23:27:42
阅读次数:
262
一、前言二、简介三、结论四、参考链接 一、前言 在工作中经常要与 mysql 打交道,但是对 mysql 的各个字段类型一直都是一知半解,因此写本文总结记录一番。 二、简介 对于 int 类型的一些基础知识其实上图已经说的很明白了,在这里想讨论下常用的 int(11) 代表什么意思,很长时间以来我都 ...
分类:
数据库 时间:
2019-03-19 01:40:44
阅读次数:
242
Given a linked list, determine if it has a cycle in it. To represent a cycle in the given linked list, we use an integer pos which represents the posi ...
分类:
其他好文 时间:
2019-03-16 12:32:44
阅读次数:
167
我参考的文章是这个链接。https://mikefrobbins.com/2018/08/02/determine-if-a-mailbox-is-on-premises-or-in-office-365-with-powershell/MikeRobbins是一个非常厉害的大牛。我现在的公司就是把Exchange邮箱迁移到O365平台上,然后用的是国际版E3证书。我得到一个需求就是把迁到云上的用
分类:
其他好文 时间:
2019-03-13 10:42:03
阅读次数:
787
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. Note: For the purpose of this problem, w ...
分类:
其他好文 时间:
2019-03-10 13:43:21
阅读次数:
150
参考:https://leetcode.com/problems/max-points-on-a-line/discuss/47113/A-java-solution-with-notes ...
分类:
其他好文 时间:
2019-03-08 16:53:05
阅读次数:
200
Given a singly linked list, determine if it is a palindrome. Example 1: Example 2: Follow up:Could you do it in O(n) time and O(1) space? ...
分类:
其他好文 时间:
2019-02-27 13:22:41
阅读次数:
182
A message containing letters from A-Z is being encoded to numbers using the following mapping: Given a non-empty string containing only digits, determ ...
分类:
其他好文 时间:
2019-02-23 19:28:01
阅读次数:
215
题目描述: Given two strings s and t , write a function to determine if t is an anagram of s. Example 1: Input:s = "anagram", t = "nagaram" Output: true Ex ...
分类:
其他好文 时间:
2019-02-22 21:08:03
阅读次数:
159
Given a linked list, determine if it has a cycle in it. To represent a cycle in the given linked list, we use an integer pos which represents the posi ...
分类:
其他好文 时间:
2019-02-22 18:14:04
阅读次数:
148