08 2019 档案

摘要:poj 2387 dijkstra c++ include include using namespace std; / poj 2387 link: http://poj.org/problem?id=2387 / int main(){ int T, N; / 赋值INF要注意一定要够大 / c 阅读全文
posted @ 2019-08-30 17:01 qbits 阅读(147) 评论(0) 推荐(0)
摘要:异或实现加法 另一种思路也可以使用 "01来实现三进制" ,根据真值表写出逻辑表达式 c++ class Solution { public: int singleNumber(vector& nums) { int a = 0, b = 0; for(int i = 0; i 阅读全文
posted @ 2019-08-17 17:54 qbits 阅读(913) 评论(0) 推荐(0)
摘要:"leetcode 146. LRU Cache" 阅读全文
posted @ 2019-08-16 11:05 qbits 阅读(566) 评论(0) 推荐(0)