Giter VIP home page Giter VIP logo

miniature-eureka's Introduction

miniature-eureka

嘿嘿,记录一下日常学习吧

设计模式

  • desing-pattern: 设计模式

经验

  • 整数相关的反转操作可能导致溢出,用 long long 或则想办法避免溢出
  • int 类型的负数和 unsigned long 类型的数比较大小需要注意
  • string.length() 的类型是 unsigned long
  • for 循环中如果代码块中有对指标的自增,则需要注意 for 循环块中的 i++
  • 整数反转,相加,相减等如何避免溢出或者知道溢出呢,-2^312^31-1 在 C++ 中各是多少
  • C++ lambda 表达式怎么用?排序中的 compare 如何用 lambda 呢?
  • 一个数据你对他进行了操作,然后又要用他的原始值就需要注意了
  • for 循环前需要先判断一下范围,你的循环是否能满足循环要求,比如数组只有一个值,你做了两层循环,肯定中间的代码是没有执行的
  • 将正数分解为字符可以用 to_string
  • char字符转为整数: stoi
  • 处理链表的时候 tail 需要注意,避免链表断开或者指向不正确

miniature-eureka's People

Contributors

duhbbx avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.