• 2024-08-13Langton's Ant
    Avirtualantlivesonaninfiniteboard,dividedintosquarecells.Each cellcanbeeitherblackorwhite.Forstarters,wecanconsideranempty(all-white)boardwithanantresidinginitsarbitrarylocation.Theantoperates accordingtothefollowi
  • 2023-07-261124.longest well performing interval
    Description1124.LongestWell-PerformingInterval(Medium)Wearegivenhours,alistofthenumberofhoursworkedperdayforagivenemployee.Adayisconsideredtobeatiringdayifandonlyifthenumberofhoursworkedis(strictly)greaterthan
  • 2023-06-29virt-sysprep基本使用
    virt-clone命令可以复制一个已经存在的虚拟机,这个命令只能在vm停机状态使用,它将克隆已存在VM的所有信息,包括UUID和MAC地址。可以使用virt-sysprep工具来配置新克隆的VM。virt-sysperp初始化虚拟机实例。virt-sysperp会将虚假机初始化到系统刚安装的状态,它会删除掉虚拟机中的sshk
  • 2023-03-07【Azure Redis 缓存】使用StackExchange.Redis,偶发ERROR - Timeout performing HSET (15000ms)
    问题描述使用StackExchange.Redis作为Redis客户端SDK,连接AzureRedis服务,长期运行后发现,每天都偶发TimeoutError。错误消息如下: StackExchange.Redis.RedisTimeou
  • 2023-02-15[LeetCode] 1124. Longest Well-Performing Interval
    Wearegiven hours,alistofthenumberofhoursworkedperdayforagivenemployee.Adayisconsideredtobea tiringday ifandonlyifthenumberofh