摘要:
1.转成int处理结果超出int最大值了 class Solution { public: int ret=-1; int findMinStep(string board, string hand) { int bnum=9;//补一位9 int hnum[6]={0}; //RYBGW //46 阅读全文
摘要:
1.记录索引交换 class Solution { public: int minSwapsCouples(vector<int>& row) { int len=row.size(); vector<int> idx(len,-1); int ret=0; for(int i=0;i<len;++ 阅读全文