- 博客(4)
- 收藏
- 关注
原创 Leetcode:Two Sum
题目:最先思路:public class Solution { public int[] TwoSum(int[] nums, int target) { for (int i = 0; i < nums.Length; i++) { for (int j = i + 1; j < nums
2017-10-11 22:46:30 198
原创 CodeWars:Most digits
题目:我的解:public class Kata{ public static int FindLongest(int[] number) { // code here int max = number[0], maxIndex = number[0].ToString().Length; for (int i = 1; i < n
2017-10-11 22:12:02 254
原创 CodeWars:Sum of odd numbers
题目:我的解:个人觉得最棒解:public static long rowSumOddNumbers(long n) { return n * n * n; }理由: ((n - 1) * n + 1) * n + (n - 1) * n==>n * n * n
2017-10-11 21:54:57 512
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人