mosh
mosh
全部文章
题解
归档
标签
去牛客网
登录
/
注册
mosh的博客
全部文章
/ 题解
(共24篇)
题解 | #从尾到头打印链表#
static int g_input[10000] = {0}; int *printListFromTailToHead(struct ListNode *listNode, int *returnSize) { int idx = 0; while (listNode != NU...
C
2022-05-17
0
317
题解 | #查找兄弟单词#
#include <stdio.h> #include <string.h> #include <stdlib.h> static char g_input[1003][11]; /* 1000 为匹配字符串,1001 和 1002 为临时转换匹配字符串 */ ...
C
2022-04-27
0
445
题解 | #合唱队#
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { int num; while (scanf("%d", &num) != -1) { ...
C
2022-04-26
3
772
题解 | #火车进站#
#include <stdio.h> #include <stdlib.h> #include <string.h> static int sortSeq(const void *a, const void *b) { return strcmp((ch...
C
2022-04-24
0
468
题解 | #简单错误记录#
#include <stdio.h> #include <string.h> static char g_input[100][17] = {0}; static int g_num[100][2] = {0}; /* 0 为输入行号,1 为统计数次数 */ int mai...
C
2022-04-22
0
470
题解 | #学英语#
#include <stdio.h> static char base[][10] = { "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve"...
C
2022-04-22
10
936
题解 | #记负均正II#
#include <stdio.h> #include <stdlib.h> #include <string.h> static int g_input[50000]; int main(int argc, char** argv) { int num...
C
2022-04-21
0
304
题解 | #Sudoku#
#include <stdio.h> #include <stdbool.h> static char g_input[9][9] = {0}; static int CheckUnitLegal(int row, int col) /* 检查当前数字在数独对应位置中是否合...
C
2022-04-17
1
419
题解 | #迷宫问题#
#include <stdio.h> #include <stdbool.h> static bool g_matrix[10][10]; static char g_data[100][2] = {0}; /* DFS 栈, 0 为行索引,1为列索引 */ int mai...
C
2022-04-14
1
473
题解 | #称砝码#
#include <stdio.h> #include <string.h> #include <stdbool.h> #define MIN(a, b) ((a < b) ? (a) : (b)) static short g_int[2][10] = ...
C
2022-04-10
0
634
首页
上一页
1
2
3
下一页
末页