
Leetcode
作业君
这个作者很懒,什么都没留下…
展开
-
memset初始化数组,memcpy拷贝数组,二维数组,八皇后问题
二维数组 注意这里,效果都是一样的 代码 #include <stdio.h> #include <string.h> int count =0; int notdanger(int row,int j,int (*chess)[8]) { int i,k,flag1=0,flag2=0,flag3=0,flag4=0,flag5=0; ...原创 2020-04-18 11:00:38 · 1037 阅读 · 0 评论 -
Leetcode(1两数之和、192统计词频、193有效的电话号码、195第十行)
1.两数之和 class Solution(object): def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ hashmap = {} ...原创 2020-04-05 10:44:48 · 145 阅读 · 1 评论