摘要: 力扣22. 括号生成 - 力扣(Leetcode) 1.第一种,暴力dfs枚举 + 判断 i.用dfs枚举出所有序列,然后判断合法括号序列 1 class Solution { 2 public: 3 bool isLegal(string s) { //判断序列是否合法 4 stack<char> 阅读全文
posted @ 2023-01-15 21:22 balabalahhh 阅读(32) 评论(0) 推荐(0) 编辑
摘要: binary.BigEndian.PutUint32() uint32类型的数字在字节流切片上占4个字节 PutUint32()专门用来处理固定长度的数字 相对:binary.BigEndian.Uint32 参考文章:https://www.jianshu.com/p/3d187474ad0c 阅读全文
posted @ 2023-01-15 16:36 balabalahhh 阅读(150) 评论(0) 推荐(0) 编辑