摘要: A message containing letters from A-Z is being encoded to numbers using the following mapping: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an encoded messag... 阅读全文
posted @ 2014-03-13 22:22 卖程序的小歪 阅读(191) 评论(0) 推荐(0) 编辑
摘要: class Solution {private: int row[9]; int col[9]; int blk[9]; public: void solveSudoku(vector > &board) { if (board.empty() || board[0].empty()) return; initBits(board); dfs(board, 0, 0); } bool dfs(vector >& board, int ridx, int cidx) { ... 阅读全文
posted @ 2014-03-13 16:24 卖程序的小歪 阅读(218) 评论(0) 推荐(0) 编辑