./runtest/ddt/i2c_readwrite # @name I2C write read test on slave device# @desc I2C write read test on slave device # @notes There is a default slave device for each platform. Its address can be# found in 'get_i2c_slave_addr'. If you pass slave dev…
最近搞了几场编程比赛,面试题或者是LeetCode周赛.每次都不能做完,发现时间不够用. 看了别人的代码才知道,同样实现相同的功能,可能别人只需要用一个恰当的函数,就会比自己少些不少代码,争得了时间.所以这些小技巧对于提升名次来说,十分重要.以后需要 更加重视才行. 拿LeetCode Weekly Contest 27 来举个例子: 第二题: 556. Next Greater Element III Given a positive 32-bit integer n, you need to…