<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>铅笔芯小屋</title>
  
  
  <link href="/atom.xml" rel="self"/>
  
  <link href="https://penciy.github.io/"/>
  <updated>2025-02-18T13:28:49.055Z</updated>
  <id>https://penciy.github.io/</id>
  
  <author>
    <name>一只铅笔芯</name>
    
  </author>
  
  <generator uri="http://hexo.io/">Hexo</generator>
  
  <entry>
    <title>高版本JDK无法通过反射访问JDK内部类的解决方案</title>
    <link href="https://penciy.github.io/posts/12368761/"/>
    <id>https://penciy.github.io/posts/12368761/</id>
    <published>2024-08-11T09:25:15.000Z</published>
    <updated>2025-02-18T13:28:49.055Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;p&gt;JDK16之后限制了反射方式对于JDK内部类的访问，因此在使用高版本JDK运行较低版本的JDK时，某些依赖由于会发生错误。&lt;/p&gt;
&lt;figure class=&quot;highlight java&quot;&gt;&lt;table&gt;&lt;tr&gt;&lt;td
        
      
    
    </summary>
    
      <category term="问题记录" scheme="https://penciy.github.io/category/%E9%97%AE%E9%A2%98%E8%AE%B0%E5%BD%95/"/>
    
    
      <category term="问题记录" scheme="https://penciy.github.io/tag/%E9%97%AE%E9%A2%98%E8%AE%B0%E5%BD%95/"/>
    
  </entry>
  
  <entry>
    <title>logTrick</title>
    <link href="https://penciy.github.io/posts/42749442322/"/>
    <id>https://penciy.github.io/posts/42749442322/</id>
    <published>2024-07-27T13:11:24.000Z</published>
    <updated>2025-02-18T13:00:38.863Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h4 id=&quot;题目&quot;&gt;题目&lt;/h4&gt;
&lt;p&gt;&lt;a href=&quot;https://leetcode.cn/problems/find-subarray-with-bitwise-or-closest-to-k/description/&quot;&gt;3171. 找到按位或最接近 K 的子数组
        
      
    
    </summary>
    
      <category term="算法" scheme="https://penciy.github.io/category/%E7%AE%97%E6%B3%95/"/>
    
    
      <category term="算法" scheme="https://penciy.github.io/tag/%E7%AE%97%E6%B3%95/"/>
    
  </entry>
  
  <entry>
    <title>快速幂--递归与迭代、数值与矩阵</title>
    <link href="https://penciy.github.io/posts/4232312342/"/>
    <id>https://penciy.github.io/posts/4232312342/</id>
    <published>2024-07-22T07:01:24.000Z</published>
    <updated>2024-09-19T03:20:36.580Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h3 id=&quot;快速幂&quot;&gt;快速幂&lt;/h3&gt;
&lt;h4 id=&quot;递归求解&quot;&gt;递归求解&lt;/h4&gt;
&lt;p&gt;快速幂实际是分治的思想，把大的次幂一步步除以二。例如求解&lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math
        
      
    
    </summary>
    
      <category term="算法" scheme="https://penciy.github.io/category/%E7%AE%97%E6%B3%95/"/>
    
    
      <category term="算法" scheme="https://penciy.github.io/tag/%E7%AE%97%E6%B3%95/"/>
    
  </entry>
  
  <entry>
    <title>前缀函数-KMP-Z函数</title>
    <link href="https://penciy.github.io/posts/321944572/"/>
    <id>https://penciy.github.io/posts/321944572/</id>
    <published>2024-06-30T11:55:17.000Z</published>
    <updated>2024-09-19T03:19:36.133Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h3 id=&quot;前缀函数&quot;&gt;前缀函数&lt;/h3&gt;
&lt;h4 id=&quot;真-前缀-真-后缀&quot;&gt;(真)前缀/(真)后缀&lt;/h4&gt;
&lt;p&gt;&lt;strong&gt;前缀&lt;/strong&gt;&lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math
        
      
    
    </summary>
    
      <category term="算法" scheme="https://penciy.github.io/category/%E7%AE%97%E6%B3%95/"/>
    
    
      <category term="算法" scheme="https://penciy.github.io/tag/%E7%AE%97%E6%B3%95/"/>
    
  </entry>
  
  <entry>
    <title>差分、二维差分、树上差分</title>
    <link href="https://penciy.github.io/posts/11231445/"/>
    <id>https://penciy.github.io/posts/11231445/</id>
    <published>2024-06-14T10:05:24.000Z</published>
    <updated>2024-09-19T03:20:06.306Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h4 id=&quot;差分&quot;&gt;差分&lt;/h4&gt;
&lt;h5 id=&quot;概念&quot;&gt;概念&lt;/h5&gt;
&lt;p&gt;对于一个数组arr，如果要将长为m的区间内的所有元素增加
        
      
    
    </summary>
    
      <category term="算法" scheme="https://penciy.github.io/category/%E7%AE%97%E6%B3%95/"/>
    
    
      <category term="算法" scheme="https://penciy.github.io/tag/%E7%AE%97%E6%B3%95/"/>
    
  </entry>
  
  <entry>
    <title>前缀和</title>
    <link href="https://penciy.github.io/posts/qian_zhui_he/"/>
    <id>https://penciy.github.io/posts/qian_zhui_he/</id>
    <published>2024-06-05T07:25:11.000Z</published>
    <updated>2024-09-19T03:19:02.565Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h3 id=&quot;前缀和&quot;&gt;前缀和&lt;/h3&gt;
&lt;h4 id=&quot;定义&quot;&gt;定义&lt;/h4&gt;
&lt;p&gt;前缀和可以简单理解为「数列的前 n 项的和」，可以O(1)地查询区间和，通常在数组不发生更新的情况下使用。&lt;/p&gt;
&lt;h4 id=&quot;模板&quot;&gt;模板&lt;/h4&gt;
&lt;figure
        
      
    
    </summary>
    
      <category term="算法" scheme="https://penciy.github.io/category/%E7%AE%97%E6%B3%95/"/>
    
    
      <category term="算法" scheme="https://penciy.github.io/tag/%E7%AE%97%E6%B3%95/"/>
    
  </entry>
  
  <entry>
    <title>线段树</title>
    <link href="https://penciy.github.io/posts/4274944572/"/>
    <id>https://penciy.github.io/posts/4274944572/</id>
    <published>2024-05-27T13:11:24.000Z</published>
    <updated>2024-09-19T03:17:13.208Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h4 id=&quot;线段树-数组实现&quot;&gt;线段树（数组实现）&lt;/h4&gt;
&lt;h5
        
      
    
    </summary>
    
      <category term="算法" scheme="https://penciy.github.io/category/%E7%AE%97%E6%B3%95/"/>
    
    
      <category term="算法" scheme="https://penciy.github.io/tag/%E7%AE%97%E6%B3%95/"/>
    
  </entry>
  
  <entry>
    <title>乘法逆元</title>
    <link href="https://penciy.github.io/posts/3215636925/"/>
    <id>https://penciy.github.io/posts/3215636925/</id>
    <published>2024-05-03T07:41:23.000Z</published>
    <updated>2024-06-05T11:44:24.035Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h4 id=&quot;定义&quot;&gt;定义&lt;/h4&gt;
&lt;p&gt;设模数为m，对于一个整数a，如果存在另一个整数&lt;span class=&quot;katex&quot;&gt;&lt;span class=&quot;katex-mathml&quot;&gt;&lt;math
        
      
    
    </summary>
    
      <category term="算法" scheme="https://penciy.github.io/category/%E7%AE%97%E6%B3%95/"/>
    
    
      <category term="算法" scheme="https://penciy.github.io/tag/%E7%AE%97%E6%B3%95/"/>
    
  </entry>
  
  <entry>
    <title>Tarjan强连通分量、割点/割边</title>
    <link href="https://penciy.github.io/posts/1828842990/"/>
    <id>https://penciy.github.io/posts/1828842990/</id>
    <published>2024-04-12T12:19:32.000Z</published>
    <updated>2024-06-05T12:04:55.325Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h3 id=&quot;强连通分量&quot;&gt;强连通分量&lt;/h3&gt;
&lt;h4 id=&quot;定义&quot;&gt;定义&lt;/h4&gt;
&lt;p&gt;&lt;strong&gt;强连通&lt;/strong&gt;的定义是：有向图 G 强连通是指，G 中任意两个结点连通。&lt;br&gt;
&lt;strong&gt;强连通分量&lt;/strong&gt;（Strongly
        
      
    
    </summary>
    
      <category term="算法" scheme="https://penciy.github.io/category/%E7%AE%97%E6%B3%95/"/>
    
    
      <category term="算法" scheme="https://penciy.github.io/tag/%E7%AE%97%E6%B3%95/"/>
    
      <category term="图论" scheme="https://penciy.github.io/tag/%E5%9B%BE%E8%AE%BA/"/>
    
  </entry>
  
  <entry>
    <title>LCA问题--树上倍增与Tarjan</title>
    <link href="https://penciy.github.io/posts/4274956372/"/>
    <id>https://penciy.github.io/posts/4274956372/</id>
    <published>2024-04-07T13:11:24.000Z</published>
    <updated>2024-09-19T03:07:29.833Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h3 id=&quot;树上倍增&quot;&gt;树上倍增&lt;/h3&gt;
&lt;p&gt;模板：&lt;a href=&quot;https://leetcode.cn/problems/kth-ancestor-of-a-tree-node/submissions/487128849/&quot;&gt;1483. 树节点的第 K 个祖先 -
        
      
    
    </summary>
    
      <category term="算法" scheme="https://penciy.github.io/category/%E7%AE%97%E6%B3%95/"/>
    
    
      <category term="算法" scheme="https://penciy.github.io/tag/%E7%AE%97%E6%B3%95/"/>
    
  </entry>
  
  <entry>
    <title>二分查找</title>
    <link href="https://penciy.github.io/posts/3907716225/"/>
    <id>https://penciy.github.io/posts/3907716225/</id>
    <published>2024-04-03T11:51:33.000Z</published>
    <updated>2024-04-21T14:45:45.121Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;h3 id=&quot;二分查找&quot;&gt;二分查找&lt;/h3&gt;
&lt;p&gt;可以二分的前提：有序&lt;/p&gt;
&lt;p&gt;时间复杂度：O(log n)&lt;/p&gt;
&lt;h4
        
      
    
    </summary>
    
      <category term="算法" scheme="https://penciy.github.io/category/%E7%AE%97%E6%B3%95/"/>
    
    
      <category term="算法" scheme="https://penciy.github.io/tag/%E7%AE%97%E6%B3%95/"/>
    
  </entry>
  
  <entry>
    <title>Hello World</title>
    <link href="https://penciy.github.io/posts/1243066710/"/>
    <id>https://penciy.github.io/posts/1243066710/</id>
    <published>2024-04-01T15:21:01.019Z</published>
    <updated>2024-04-19T13:16:49.520Z</updated>
    
    <summary type="html">
    
      
      
        
        
          &lt;p&gt;Welcome to &lt;a href=&quot;https://hexo.io/&quot;&gt;Hexo&lt;/a&gt;! This is your very first post. Check &lt;a href=&quot;https://hexo.io/docs/&quot;&gt;documentation&lt;/a&gt;
        
      
    
    </summary>
    
    
  </entry>
  
</feed>
