摘要:
等号左右两边代码一样,就是+ - 不一样 将x都移到左边 整数移到右边 class Solution { public: int change(string str) { if(str == "0") return 1; int len = str.length(); int ret = 0; fo 阅读全文
摘要:
class Solution { public: int reverse(int x) { // cout << 1111 << endl; long long ret = 0; long long y = x; int f = 0; if(y < 0) f = 1, y = -y; // cout 阅读全文
摘要:
/* // Definition for Employee. class Employee { public: int id; int importance; vector<int> subordinates; }; */ class Solution { public: int vis[10010 阅读全文