GithubHelp home page GithubHelp logo

jasonwu123 / leetcode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from godcong/leetcode

0.0 2.0 0.0 203 KB

This is an leetcode problem-solving project, completed with go

License: MIT License

Go 100.00%

leetcode's Introduction

leetcode

Implementation

Name rule #Index#.#Function#.go Index represents the number in leecode

Test case

Name rule #Index#.#Function#_test.go

Common definitions

All append into def.go

All completed questions

总完成:71

目录 标题 函数名 实现代码 测试代码
0001 两数之和 twoSum GO TEST
0002 两数相加 addTwoNumbers GO TEST
0003 无重复字符的最长子串 lengthOfLongestSubstring GO TEST
0005 最长回文子串 longestPalindrome GO TEST
0006 Z 字形变换 convert GO TEST
0007 整数反转 reverse GO TEST
0008 字符串转换整数 (atoi) myAtoi GO TEST
0013 罗马数字转整数 romanToInt GO TEST
0014 最长公共前缀 longestCommonPrefix GO TEST
0017 电话号码的字母组合 letterCombinations GO TEST
0020 有效的括号 isValid GO TEST
0027 移除元素 removeElement GO TEST
0043 字符串相乘 multiply GO TEST
0058 最后一个单词的长度 lengthOfLastWord GO TEST
0067 二进制求和 addBinary GO TEST
0070 爬楼梯 climbStairs GO TEST
0093 复原IP地址 restoreIpAddresses GO TEST
0099 恢复二叉搜索树 recoverTree GO TEST
0100 平衡二叉树 isBalanced GO TEST
0100 相同的树 isSameTree GO TEST
0109 有序链表转换二叉搜索树 sortedListToBST GO TEST
0111 二叉树的最小深度 minDepth GO TEST
0130 被围绕的区域 solve GO TEST
0133 克隆图 cloneGraph GO TEST
0191 位1的个数 hammingWeight GO TEST
0193 有效电话号码 Bash GO TEST
0201 数字范围按位与 rangeBitwiseAnd GO TEST
0204 计数质数 countPrimes GO TEST
0381 O(1) 时间插入、删除和获取随机元素 - 允许重复 RandomizedCollection GO TEST
0415 字符串相加 addStrings GO TEST
0459 重复的子字符串 repeatedSubstringPattern GO TEST
0461 汉明距离 hammingDistance GO TEST
0475 供暖器 findRadius GO TEST
0491 递增子序列 findSubsequences GO TEST
0532 数组中的K-diff数对 findPairs GO TEST
0546 移除盒子 removeBoxes GO TEST
0581 最短无序连续子数组 findUnsortedSubarray GO TEST
0605 种花问题 canPlaceFlowers GO TEST
0617 合并二叉树 mergeTrees GO TEST
0633 平方数之和 judgeSquareSum GO TEST
0647 回文子串 countSubstrings GO TEST
0665 非递减数列 checkPossibility GO TEST
0679 24 点游戏 judgePoint24 GO TEST
0686 重复叠加字符串匹配 repeatedStringMatch GO TEST
0696 计数二进制子串 countBinarySubstrings GO TEST
0733 图像渲染 floodFill GO TEST
0804 唯一摩尔斯密码词 uniqueMorseRepresentations GO TEST
0840 矩阵中的幻方 numMagicSquaresInside GO TEST
0874 模拟行走机器人 robotSim GO TEST
0949 给定数字能组成的最大时间 largestTimeFromDigits GO TEST
1021 删除最外层的括号 removeOuterParentheses GO TEST
1051 高度检查器 heightChecker GO TEST
1108 IP 地址无效化 defangIPaddr GO TEST
1299 将每个元素替换为右侧最大元素 replaceElements GO TEST
1351 统计有序矩阵中的负数 countNegatives GO TEST
1431 拥有最多糖果的孩子 kidsWithCandies GO TEST
1470 重新排列数组 shuffle GO TEST
1480 一维数组的动态和 runningSum GO TEST
1486 数组异或操作 xorOperation GO TEST
1496 判断路径是否相交 isPathCrossing GO TEST
1502 判断能否形成等差数列 canMakeArithmeticProgression GO TEST
1507 转变日期格式 reformatDate GO TEST
1512 好数对的数目 numIdenticalPairs GO TEST
1539 第 k 个缺失的正整数 findKthPositive GO TEST
1544 整理字符串 makeGood GO TEST
1550 存在连续三个奇数的数组 threeConsecutiveOdds GO TEST
Interview.02.03 删除中间节点 deleteNode GO TEST
LCP.6 拿硬币 minCount GO TEST
Offer.10.i 斐波那契数列 fib GO TEST
Offer.43 1~n整数中1出现的次数 countDigitOne GO TEST
Offer.58.ii 左旋转字符串 reverseLeftWords GO TEST

leetcode's People

Contributors

godcong avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.