LeetCode
yonuyeung
武汉科技大学
展开
-
LC 2022. 将一维数组转变成二维数组
题目链接:https://leetcode-cn.com/problems/convert-1d-array-into-2d-array/ class Solution { public: vector<vector<int>> construct2DArray(vector<int> &original, int m, int n) { vector<vector<int>> ans; if (原创 2022-01-01 15:36:21 · 486 阅读 · 0 评论 -
136. 只出现一次的数字(LeetCode)
struct hashTable { int key; int value; UT_hash_handle hh; }; int singleNumber(int* nums, int numsSize) { struct hashTable *hashtable = NULL; for (int i = 0; i < numsSize; i++) { struct hashTable *tmp; HASH_FIN.原创 2021-10-20 00:08:44 · 45 阅读 · 0 评论