#leetcodeUnmoderated tagAll postsTrending CommunitiesNewcomers' CommunitySteemitCryptoAcademySteemit Feedbackআমার বাংলা ব্লগKorea • 한국 • KR • KOSTEEM CN/中文Steem AllianceSteem POD TeamAVLE 일상WORLD OF XPILARBeauty of CreativityUkraine on SteemExplore Communities...#leetcodeTrendingHotNewPayoutsMutedjustyy (83)in #blog • 7 days ago50 Days Leetcode Streak with My SonEveryday, I spent 5 or 10 mins, leetcoding with my son together. It is a good opportunity for me to brush up data…justyy (83)in #blog • 26 days agoMy son wants to know if "too many if-s" would slow the code downThe submitted Python code for merging two binary trees is logically correct but suffers from excessive redundancy due…justyy (83)in #blog • 27 days agoMy son is leetcoding every day now.. He said he wants to be a software engineer...My son is leetcoding every day now.. He said he wants to be a software engineer . But he didn't know ChatGPT is…justyy (83)in #blog • last monthMy son likes to invite me to a leetcode room when he is solving the leetcode puzzles dailyThe Leetcode Coding Room's realtime multi-coder collaboration feature is a powerful tool designed to enhance teamwork…ericandryan (74)in #cn • last month娃开始每天都在刷力扣, 他长大以后想当软件工程师弟弟说,他想像我一样长大后成为一名程序员。然而,随着 人工智能/AI(比如ChatGPT) 的飞速进化,未来或许程序员这个职业都会被取代。这一两年,互联网大厂的招聘也明显减少了。…justyy (83)in #blog • 2 months agoMy 10-yr old son starts to do leetcode every dayMy 10-yr old son starts to do leetcode every day He said he want to become a software engineer as his dad. :)…justyy (83)in #blog • 3 months agoLeetcoding on the Smart TVI managed to do leetcoding on a smart TV (LG OLED 65 inc). The TV has a inbuilt browser. I used a bluetooth mouse and…justyy (83)in #blog • 4 months agoMilestone: Leetcoding for 2000 DaysI do leetcoding every day since 2/March/2019 Steem to the Moon🚀! You can rent Steem…justyy (83)in #blog • 4 months agoLeetcode DCC Winner T-shirtI solve problems on LeetCode every day. LeetCode has both a Chinese site and an international site, and I submit code…fangwei (60)in #programming • 5 months ago【LeetCode】541. 反转字符串 II1 题目描述 541. 反转字符串 II 给定一个字符串 s 和一个整数 k ,从字符串开头算起,每计数至 2k 个字符,就反转这 2k 字符中的前 k 个字符。如果剩余字符少于 k…fangwei (60)in #programming • 5 months ago【Leetcode】344. 反转字符串1 题目描述 344. 反转字符串 编写一个函数,其作用是将输入的字符串反转过来。输入字符串以字符数组 s 的形式给出。不要给另外的数组分配额外的空间,你必须原地修改输入数组、使用 O(1) 的额外空间解决这一问题。 2…fangwei (60)in #programming • 5 months ago【LeetCode】142. 环形链表 II1 题目描述 142. 环形链表 II 给定一个链表的头节点 head ,要求返回链表开始入环的第一个节点。如果没有环,则返回 null 。 2 解题思路 快慢指针法 :使用两个指针,一个快指针 fast…fangwei (60)in #programming • 5 months ago【LeetCode】160. 相交链表1 题目描述 160. 相交链表 要求给定两个单链表的头节点 headA 和 headB ,任务是找出并返回两个单链表相交的起始节点。如果两个链表不存在相交节点,返回 null 。 2 解题思路…fangwei (60)in #programming • 7 months ago【LeetCode】19. 删除链表的倒数第 N 个结点1 题目描述 19. 删除链表的倒数第 N 个结点 要求给定一个链表,任务是删除链表的倒数第 n 个结点,并且返回链表的头结点。 2 解题思路 本题可以通过双指针的方法来解决。具体来说,可以使用两个指针 slow…fangwei (60)in #programming • 7 months ago【LeetCode】24. 两两交换链表中的节点1 题目描述 24. 两两交换链表中的节点 要求给定一个链表,要求两两交换其中相邻的节点,并返回交换后链表的头节点。需要注意的是,必须在不修改节点内部的值的情况下完成这个任务(即,只能进行节点交换)。 2 解题思路…fangwei (60)in #programming • 8 months ago【LeetCode】206. 反转链表1 题目描述 206. 反转链表 要求给定单链表的头节点 head ,任务是反转链表,并返回反转后的链表。 2 解题思路 递归反转 :使用递归方法,每次反转当前节点 cur 的 next…fangwei (60)in #programming • 8 months ago【LeetCode】203. 移除链表元素1 题目描述 203. 移除链表元素 要求给定一个链表的头节点 head 和一个整数 val ,任务是删除链表中所有满足 Node.val == val 的节点,并返回新的头节点。 2 解题思路…fangwei (60)in #programming • 8 months ago【LeetCode】146. 螺旋遍历二维数组1 题目描述 LCR 146. 螺旋遍历二维数组 给定一个二维数组 array ,任务是返回「螺旋遍历」该数组的结果。螺旋遍历是指从左上角开始,按照 向右、向下、向左、向上的顺序…fangwei (60)in #programming • 8 months ago【LeetCode】54. 螺旋矩阵1 题目描述 54. 螺旋矩阵 要求给定一个 m 行 n 列的矩阵 matrix ,请按照顺时针螺旋顺序返回矩阵中的所有元素。 2 解题思路…fangwei (60)in #programming • 8 months ago【LeetCode】59. 螺旋矩阵 II1 题目描述 给定一个正整数 n ,生成一个包含从 1 到 n^2 所有元素的 n x n 正方形矩阵 matrix ,并且这些元素按照顺时针方向螺旋排列。 2 解题思路…