diff --git a/problems/136.single-number.md b/problems/136.single-number.md index fb892ec02..f574d6398 100644 --- a/problems/136.single-number.md +++ b/problems/136.single-number.md @@ -40,7 +40,7 @@ Your algorithm should have a linear runtime complexity. Could you implement it w ## 代码 -* 语言支持:JS,C++,Python +* 语言支持:JS,C,C++,Java,Python JavaScrip Code: ```js @@ -93,7 +93,20 @@ var singleNumber = function(nums) { return ret; }; ``` -C++: +C Code: +```C +int singleNumber(int* nums, int numsSize){ + int res=0; + for(int i=0;i