<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[qq_40192867的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/qq_40192867</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; qq_40192867]]></copyright><item><title><![CDATA[区块链9999999666666]]></title><link>https://blog.csdn.net/qq_40192867/article/details/125899782</link><guid>https://blog.csdn.net/qq_40192867/article/details/125899782</guid><author>qq_40192867</author><pubDate>Wed, 20 Jul 2022 20:50:05 +0800</pubDate><description><![CDATA[2018·世界互联网领先科技成果奖2018年，由40余位全球的顶级专家学者参与评选的“2018年世界互联网领先科技成果”中，蚂蚁区块链获得唯一区块链奖项。2019·金融科技大奖-“信任数字化”奖蚂蚁区块链“双链通”获颁IDC2019年金融科技大奖——"信任数字化"奖，双链通技术的目标是打通供应链上下游企业，推动小微企业快速融资。2019·全球最聪明的50家公司。.........]]></description><category></category></item><item><title><![CDATA[有序数组，查找target第一次位置 和最后一次位置]]></title><link>https://blog.csdn.net/qq_40192867/article/details/123347910</link><guid>https://blog.csdn.net/qq_40192867/article/details/123347910</guid><author>qq_40192867</author><pubDate>Tue, 08 Mar 2022 10:47:33 +0800</pubDate><description><![CDATA[解题思路
不同于二分找target左边界再二分找target右边界。

我是先再外面套了个壳，先用一趟二分找到target的大概位置。
然后再在这个区间内 二分找target左边界和右边界。

然后二分的这个细节确实要了命了 while里要不要判定等于，一定要考虑好了。
有经验了才能少绕弯。


class Solution {

    /**
     * @param Integer[] $nums
     * @param Integer $target
     * @return Intege]]></description><category></category></item><item><title><![CDATA[每K个反转链表]]></title><link>https://blog.csdn.net/qq_40192867/article/details/123250902</link><guid>https://blog.csdn.net/qq_40192867/article/details/123250902</guid><author>qq_40192867</author><pubDate>Thu, 03 Mar 2022 12:29:24 +0800</pubDate><description><![CDATA[/**
 * Definition for a singly-linked list.
 * class ListNode {
 *     public $val = 0;
 *     public $next = null;
 *     function __construct($val = 0, $next = null) {
 *         $this-&gt;val = $val;
 *         $this-&gt;next = $next;
 *     }
 * }
 */.]]></description><category></category></item><item><title><![CDATA[二叉树展开为链表]]></title><link>https://blog.csdn.net/qq_40192867/article/details/123250811</link><guid>https://blog.csdn.net/qq_40192867/article/details/123250811</guid><author>qq_40192867</author><pubDate>Thu, 03 Mar 2022 12:26:57 +0800</pubDate><description><![CDATA[/**
 * Definition for a binary tree node.
 * class TreeNode {
 *     public $val = null;
 *     public $left = null;
 *     public $right = null;
 *     function __construct($val = 0, $left = null, $right = null) {
 *         $this-&gt;val = $val;
 *     .]]></description><category></category></item><item><title><![CDATA[LRU啊啊啊]]></title><link>https://blog.csdn.net/qq_40192867/article/details/123214485</link><guid>https://blog.csdn.net/qq_40192867/article/details/123214485</guid><author>qq_40192867</author><pubDate>Tue, 01 Mar 2022 20:08:18 +0800</pubDate><description><![CDATA[&lt;?php
error_reporting(0);
class LRUCache {
private $capacity;
private $list;
/**
* @param Integer $capacity
*/
function __construct($capacity) {
$this-&gt;capacity=$capacity;
$this-&gt;list=new HashList();

}

/**
* @param Integer $key
* @return Intege.]]></description><category></category></item><item><title><![CDATA[螺旋输出矩阵]]></title><link>https://blog.csdn.net/qq_40192867/article/details/123210490</link><guid>https://blog.csdn.net/qq_40192867/article/details/123210490</guid><author>qq_40192867</author><pubDate>Tue, 01 Mar 2022 17:04:54 +0800</pubDate><description><![CDATA[&lt;?php
/**
 * 代码中的类名、方法名、参数名已经指定，请勿修改，直接返回方法规定的值即可
 * 
 * @param matrix int整型二维数组 
 * @return int整型一维数组
 */
function spiralOrder( $matrix )
{
    // write code here
    $count = count($matrix);//行数
    if(empty($count)) return $matrix;
    $array = [];
.]]></description><category></category></item><item><title><![CDATA[最长无重复子数组]]></title><link>https://blog.csdn.net/qq_40192867/article/details/123205307</link><guid>https://blog.csdn.net/qq_40192867/article/details/123205307</guid><author>qq_40192867</author><pubDate>Tue, 01 Mar 2022 14:31:02 +0800</pubDate><description><![CDATA[&lt;?php


/**
 * 代码中的类名、方法名、参数名已经指定，请勿修改，直接返回方法规定的值即可
 * 
 * @param arr int整型一维数组 the array
 * @return int整型
 */
function maxLength( $arr )
{
    // write code here
        $temp_arr = [];    //存储临时数组
    $max      = 0;     //存储最大值
    // write code here.]]></description><category></category></item><item><title><![CDATA[大数字加法，减法]]></title><link>https://blog.csdn.net/qq_40192867/article/details/123201897</link><guid>https://blog.csdn.net/qq_40192867/article/details/123201897</guid><author>qq_40192867</author><pubDate>Tue, 01 Mar 2022 11:57:48 +0800</pubDate><description><![CDATA[&lt;?php


/**
 * 代码中的类名、方法名、参数名已经指定，请勿修改，直接返回方法规定的值即可
 * 计算两个数之和
 * @param s string字符串 表示第一个整数
 * @param t string字符串 表示第二个整数
 * @return string字符串
 */
function solve( $s ,  $t )
{
    //先判断哪个字符串长度较小
    if (strlen($s) &lt; strlen($t)) {
        $smallStr .]]></description><category></category></item><item><title><![CDATA[验证IP地址 IPV4 IPV6]]></title><link>https://blog.csdn.net/qq_40192867/article/details/123201642</link><guid>https://blog.csdn.net/qq_40192867/article/details/123201642</guid><author>qq_40192867</author><pubDate>Tue, 01 Mar 2022 11:19:39 +0800</pubDate><description><![CDATA[&lt;?php


/**
 * 代码中的类名、方法名、参数名已经指定，请勿修改，直接返回方法规定的值即可
 * 验证IP地址
 * @param IP string字符串 一个IP地址字符串
 * @return string字符串
 */
function solve( $IP )
{
    $arr=explode('.',$IP);
    if(checkIpV4($arr)){
        return 'IPv4';
    }
    $arr=explode(':',$IP);
.]]></description><category></category></item><item><title><![CDATA[字符串变形]]></title><link>https://blog.csdn.net/qq_40192867/article/details/123183234</link><guid>https://blog.csdn.net/qq_40192867/article/details/123183234</guid><author>qq_40192867</author><pubDate>Mon, 28 Feb 2022 15:14:36 +0800</pubDate><description><![CDATA[&lt;?php
 
 
/**
 * 代码中的类名、方法名、参数名已经指定，请勿修改，直接返回方法规定的值即可
 *
 * @param s string字符串
 * @param n int整型
 * @return string字符串
 */
function trans( $s ,  $n )
{
    // write code here
    $result = [];
    $exploded = explode(' ', $s);
    for ($i = count($explo.]]></description><category></category></item><item><title><![CDATA[买卖股票的最好时机1，2]]></title><link>https://blog.csdn.net/qq_40192867/article/details/123181441</link><guid>https://blog.csdn.net/qq_40192867/article/details/123181441</guid><author>qq_40192867</author><pubDate>Mon, 28 Feb 2022 15:09:23 +0800</pubDate><description><![CDATA[1.只买卖一次


&lt;?php


/**
 * 代码中的类名、方法名、参数名已经指定，请勿修改，直接返回方法规定的值即可
 * 
 * @param prices int整型一维数组 
 * @return int整型
 */

function maxProfit( $prices )
{
    // write code here
  // write code here
        $len = count($prices);
        // 特殊判断
        if ($l]]></description><category></category></item><item><title><![CDATA[打家劫舍 1，2]]></title><link>https://blog.csdn.net/qq_40192867/article/details/123181322</link><guid>https://blog.csdn.net/qq_40192867/article/details/123181322</guid><author>qq_40192867</author><pubDate>Mon, 28 Feb 2022 14:11:15 +0800</pubDate><description><![CDATA[&lt;?php


/**
 * 代码中的类名、方法名、参数名已经指定，请勿修改，直接返回方法规定的值即可
 *
 * 
 * @param nums int整型一维数组 
 * @return int整型
 */
function rob( $nums )
{
 
    $nums1 = $nums; 
     $nums2 = $nums; 
    array_pop($nums1);
    array_shift($nums2);
    
      // var_dump(find($.]]></description><category></category></item><item><title><![CDATA[编辑距离1111]]></title><link>https://blog.csdn.net/qq_40192867/article/details/123179322</link><guid>https://blog.csdn.net/qq_40192867/article/details/123179322</guid><author>qq_40192867</author><pubDate>Mon, 28 Feb 2022 11:53:23 +0800</pubDate><description><![CDATA[&lt;?php


/**
 * 代码中的类名、方法名、参数名已经指定，请勿修改，直接返回方法规定的值即可
 *
 *
 * @param str1 string字符串
 * @param str2 string字符串
 * @return int整型
 */
function editDistance( $str1 ,  $str2 )
{
    // write code here
    $len1 = strlen($str1);
    $len2 = strlen($str2);
    .]]></description><category></category></item><item><title><![CDATA[兑换零钱(一)]]></title><link>https://blog.csdn.net/qq_40192867/article/details/123164971</link><guid>https://blog.csdn.net/qq_40192867/article/details/123164971</guid><author>qq_40192867</author><pubDate>Sun, 27 Feb 2022 15:29:51 +0800</pubDate><description><![CDATA[h]]></description><category></category></item><item><title><![CDATA[矩阵的最小路径和]]></title><link>https://blog.csdn.net/qq_40192867/article/details/123163533</link><guid>https://blog.csdn.net/qq_40192867/article/details/123163533</guid><author>qq_40192867</author><pubDate>Sun, 27 Feb 2022 14:03:29 +0800</pubDate><description><![CDATA[&lt;?php


/**
 * 代码中的类名、方法名、参数名已经指定，请勿修改，直接返回方法规定的值即可
 * 
 * @param matrix int整型二维数组 the matrix
 * @return int整型
 */
function minPathSum( $matrix )
{
    // write code here
    $m = count($matrix[0]);
    $n = count($matrix);
    
     // write code here.]]></description><category></category></item><item><title><![CDATA[最长公共子串]]></title><link>https://blog.csdn.net/qq_40192867/article/details/123163064</link><guid>https://blog.csdn.net/qq_40192867/article/details/123163064</guid><author>qq_40192867</author><pubDate>Sun, 27 Feb 2022 13:23:02 +0800</pubDate><description><![CDATA[&lt;?php


/**
 * 代码中的类名、方法名、参数名已经指定，请勿修改，直接返回方法规定的值即可
 * longest common substring
 * @param str1 string字符串 the string
 * @param str2 string字符串 the string
 * @return string字符串
 */
function LCS( $s ,  $t )
{
      if ($s == null || $t == null) {
          .]]></description><category></category></item><item><title><![CDATA[最长公共子序列(二)]]></title><link>https://blog.csdn.net/qq_40192867/article/details/123162646</link><guid>https://blog.csdn.net/qq_40192867/article/details/123162646</guid><author>qq_40192867</author><pubDate>Sun, 27 Feb 2022 12:47:39 +0800</pubDate><description><![CDATA[&lt;?php


/**
 * 代码中的类名、方法名、参数名已经指定，请勿修改，直接返回方法规定的值即可
 * longest common subsequence
 * @param s1 string字符串 the string
 * @param s2 string字符串 the string
 * @return string字符串
 */
function LCS( $s1 ,  $s2 )
{
    // write code here
    $len1 = strlen($s1);
.]]></description><category></category></item><item><title><![CDATA[数组中只出现一次的两个数字]]></title><link>https://blog.csdn.net/qq_40192867/article/details/123148643</link><guid>https://blog.csdn.net/qq_40192867/article/details/123148643</guid><author>qq_40192867</author><pubDate>Sat, 26 Feb 2022 13:27:02 +0800</pubDate><description><![CDATA[&lt;?php


/**
 * 代码中的类名、方法名、参数名已经指定，请勿修改，直接返回方法规定的值即可
 *
 * 
 * @param array int整型一维数组 
 * @return int整型一维数组
 * 异或相同为0不同为1
 */
function FindNumsAppearOnce( $array )
{
    $tmp = 0;
    foreach($array as $ar){
        $tmp  = $tmp^ $ar;
    }
    
    $ma.]]></description><category></category></item><item><title><![CDATA[两数字和11111]]></title><link>https://blog.csdn.net/qq_40192867/article/details/123139440</link><guid>https://blog.csdn.net/qq_40192867/article/details/123139440</guid><author>qq_40192867</author><pubDate>Fri, 25 Feb 2022 19:13:37 +0800</pubDate><description><![CDATA[&lt;?php
/**
 * 代码中的类名、方法名、参数名已经指定，请勿修改，直接返回方法规定的值即可
 * 
 * @param numbers int整型一维数组 
 * @param target int整型 
 * @return int整型一维数组
 */
function twoSum( $numbers ,  $target )
{
    // write code here
//    暴力求解
//    for($i=0;$i&lt;count($numbers);$i++){
/.]]></description><category></category></item><item><title><![CDATA[计算器，，，，]]></title><link>https://blog.csdn.net/qq_40192867/article/details/123139027</link><guid>https://blog.csdn.net/qq_40192867/article/details/123139027</guid><author>qq_40192867</author><pubDate>Fri, 25 Feb 2022 18:41:50 +0800</pubDate><description><![CDATA[&lt;?php


/**
 * 代码中的类名、方法名、参数名已经指定，请勿修改，直接返回方法规定的值即可
 * 返回表达式的值
 * @param s string字符串 待计算的表达式
 * @return int整型
 */
function solve( $s )
{
    // write code here
    //$rt = computer(1,2,'+');
    //var_dump($rt);
    $sign_stack = array();
    $number_s.]]></description><category></category></item></channel></rss>