LeetCode
我是那颗银弹
这个作者很懒,什么都没留下…
展开
-
LeetCode
1.Tow SumGiven an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have exactly one solution, and you may not原创 2017-11-01 21:25:14 · 183 阅读 · 0 评论 -
C++中bool类型输出成true或者false,而不是1,0
leetcode657#include <bits/stdc++.h>using namespace std;bool judgeCircle(string moves){ int up=0; int lr=0; for(int i=0;i<moves.length();i++){ if(moves[i]=='U') up++; ...原创 2018-05-03 15:36:08 · 24800 阅读 · 0 评论