1. 题目 1.1 英文 Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb" , the answer is "abc" , which the length is 3. Given ...
1. 题目 1.1 英文 Given a string containing just the characters '(' , ')' , '{' , '}' , '[' and ']' , determine if the input string is valid. The brackets mu...
1. 题目 1.1 英文 Determine whether an integer is a palindrome. Do this without extra space. Some hints : Could negative integers be palindromes? (ie, -1) If you are thinking of converting the integer to s...
1. 题目 Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: Input: 120 Output: 21 Note: Assume we are dealing wi...
Go语言中,有一些内置的类型和函数,不需要导入任何东西就可以使用,包括一些内置函数,初学Go,这些函数花几分钟记一记。 官方参考资料: Package builtin 1. 内置类型 Constants Variables type ComplexType type FloatType type IntegerType type Type type Type1 type bool type byt...
准备定期刷一刷LeetCode上的题目,并且做一做笔记,这是第一篇。算法实现将采用Go语言。 1. 题目 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...
关于PCRE的介绍以及实现正则表达式功能的所有说明,都可以在官方手册中看到: 正则表达式(兼容 Perl) 一 认识PCRE 1. 什么是PCRE PCRE 库是一个实现了与 perl 5 在语法和语义上略有差异的正则表达式模式匹配功能的函数集。 2. PCRE 库介绍 PCRE 是 PHP 核心扩展 ,所以总是启用的。 默认情况下,该扩展使用内置的 PCRE library。或者,也可以通过指定...
关于将数据序列化存储这块,一直有一个疑问,就是serialize和json应该用哪一个更好。 参考了很多文章和讨论: Serialize or json in PHP? JSON vs. Serialized Array in database PHP的serialize序列化数据与JSON格式化数据 php的serialize序列化和json性能测试 总结一下: serialize解码比json...
现在的一个状况是,PHP懂个基础,可以独立开发一个后台,APP接口,进行数据库操作,写点简单js。但是,都是最基础的操作,用最简单的方式实现功能,没有太多性能啊之类上的考虑,以目前的知识也无法考虑到,毕竟接触编程也不久,所以现在急于提升自己。 虽然说,有些基础东西的东西也还没有彻底打扎实,但是总觉得这是一个过程,慢慢打就扎实了,所以还是觉得学点新技术比较好。但是问题来了,每当下班回到家坐在电脑前的...