ManuShi98

真彩希帆のファン


  • Home

  • About

  • Tags

  • Categories

  • Archives

  • Search

iris学习笔记

Posted on 2022-05-10 | In 工程 , Go , Iris

iris后端开发笔记整理

Read more »

Algorithm Template

Posted on 2022-03-18 | In 算法 , 模版

Algorithm Template for Leetcoder user ManuShi98, Codeforces user KihoMaaya and ManuShi.

Read more »

Codeforces - 1635D Infinite Set(dp)

Posted on 2022-03-13 | In 算法 , 动态规划

题意

给定一个数组,我们可以通过2种方式扩张这个数组:

  • 选取数组中的一个数,令其为x,将2*x+1的结果也加入到数组中
  • 选取数组中的一个数,令其为x,将4*x的结果也加入到数组中

给定一个p,问通过扩张后数组小于2^p的元素个数有几个,结果对1e9+7取模。原数组大小和p最大为1e5。

Read more »

MIT 6.824分布式系统笔记

Posted on 2022-01-18 | In 公开课笔记 , 分布式系统

基于MIT 6.824 2021Spring 课程笔记

Read more »

Leetcode - 99 Recover Binary Search Tree

Posted on 2021-11-16 | In 算法 , Morris遍历

在Leetcode中碰到了从未在ACM中见过的Morris遍历,简单记录一下。

Read more »

Fragment管理指北

Posted on 2021-08-07 | In 工程 , Android

fragment-management-cover.jpeg

随着ViewModel的大量使用,曾经并不是那么好用的Fragment走上了主流的舞台。相较于简明易懂的Activity管理,Fragment的管理更为复杂。在上周的需求中,我和同事共同完成了一个旧页面的彻底改造。在改造的过程中,我们发现了一个Fragment偶尔重复添加的bug。由于报错信息有限,同时对于Fragment的理解不够,我直接就是一波反向定位:new_moon_with_face:, 认为主要的问题是Activity被kill后恢复时,未判断是否是第一次添加fragment导致了重复添加。最后发现并不是这个问题导致的重复添加:disappointed_relieved:,但是探索的过程非常有趣,也增加了我对Fragment的理解。所以写下此文与大家分享。

Read more »

View的动态添加-Android

Posted on 2021-07-31 | In 工程 , Android

android11.png
Android 11 (Image credit: Shutterstock / TechRadar)

在安卓小列表展示的情况下,我们应该使用什么样的UI结构?使用写死的xml?很容易缺乏灵活性,如果列表变动就会需要更改多个模块。使用recycleview?虽然拥有灵活性但是太重,有杀鸡用牛刀之感。在实习的过程中我就碰到了这样的问题,通过同事的指点学习了为视图动态添加view的方式。在学习的过程中,我发现相关的文章相对较少,而且很多文章是在kotlin/java文件中添加布局,而不是xml文件,灵活性相对较差。所以在此与大家分享这个问题上我的实践方式。

Read more »

Head first Red Black Tree

Posted on 2021-07-01 | In 算法 , 平衡树 , 红黑树

Red-Black Tree is a special kind of binary search tree. Each of its node is either black or red. Besides, the Red-Black tree has the following features:

  • Each of its nodes is either black or red.
  • The root node is black.
  • Every leaf node is black. (In the Red-Black tree, the leaf node is a NIL node).
  • If a node is red, its child must be black.
  • From any node to its descendant leaf node must have the same number of black nodes.

The reason why we use the Red-Black tree that it’s height is always log(n), which guarantees the time complexity of its operation. The proof of Red-Black Tree’s time complexity can be found here.

Read more »

Relearn Front End Technology

Posted on 2021-04-24 | In 工程 , 前端

Note of relearn Front End. Course URL

Read more »

High Performance MySQL

Posted on 2021-03-21 | In 工程 , 数据库 , MySQL

本文基于MySQL 8.0。高性能MySQL自用笔记。

Read more »
123…10

93 posts
70 categories
61 tags
GitHub E-Mail
Links
  • numberer
© 2023 ManuShi98
Powered by Hexo
|
Theme — NexT.Pisces v5.1.4