leetcode共452篇
LeetCode problem 3396-拾光赋

LeetCode problem 3396

LeetCode problem 3396,In this post, I’ll walk through my two solutions to LeetCode Problem 3396: Minimum Number of Operations to Make Elements in Array Distinct, using pythonic a ...
kity的头像-拾光赋kity8天前
0249
LeetCode 993: Cousins in Binary Tree – DFS and BFS Approaches Explained (Python)-拾光赋

LeetCode 993: Cousins in Binary Tree – DFS and BFS Approaches Explained (Python)

LeetCode 993: Cousins in Binary Tree – DFS and BFS Approaches Explained (Python), LeetCode 993: Cousins in Binary Tree – DFS and BFS Explained (Python) In this post, I’ll walk t...
kity的头像-拾光赋kity26天前
0529
Desafio do LeetCode: Validação de Sequência de Parênteses-拾光赋

Desafio do LeetCode: Validação de Sequência de Parênteses

Desafio do LeetCode: Validação de Sequência de Parênteses, Introdução Neste artigo, vou apresentar a implementação de um desafio simples de validação de caracteres de tex...
kity的头像-拾光赋kity32天前
05112
Invert Binary Tree in Java-拾光赋

Invert Binary Tree in Java

Invert Binary Tree in Java, Invert Binary Tree - A Step-by-Step Journey Binary trees are a fascinating data structure, and problems involving them often show up in coding interview...
kity的头像-拾光赋kity33天前
02312
Solving the Valid Palindrome Problem in Java-拾光赋

Solving the Valid Palindrome Problem in Java

Solving the Valid Palindrome Problem in Java, Hey there! If you’re prepping for coding interviews or just love a good string problem, you’ve probably come across the Valid Palind...
kity的头像-拾光赋kity34天前
0427
Best Time to Buy and Sell Stock in Java-拾光赋

Best Time to Buy and Sell Stock in Java

Best Time to Buy and Sell Stock in Java, Solving the Best Time to Buy and Sell Stock Problem in Java When it comes to algorithmic problem-solving, one of the classic challenges tha...
kity的头像-拾光赋kity36天前
04614
Java的栈与队列以及代码实现-拾光赋

Java的栈与队列以及代码实现

Java的栈与队列以及代码实现, Java栈和队列 栈的概念(Stack) 栈的实现 代码 队列(Queue) 模拟实现队列(双链表实现) 循环队列(循环数组实现) 用队列实现栈 用栈来实现队列 总结 栈的概念(...
Lee的头像-拾光赋Lee41天前
02711
LeetCode — 2807. Insert Greatest Common Divisors in Linked List-拾光赋

LeetCode — 2807. Insert Greatest Common Divisors in Linked List

LeetCode — 2807. Insert Greatest Common Divisors in Linked List,It’s a medium problem with the description being: Given the head of a linked list head, in which each node contain...
kity的头像-拾光赋kity1个月前
0518
My LeetCode Experience-拾光赋

My LeetCode Experience

My LeetCode Experience, My LeetCode Experience: From Fibonacci to Dynamic Programming When I first started tackling LeetCode problems, even the basics like Fibonacci and Two Sum fe...
kity的头像-拾光赋kity1个月前
0356
Why Python’s Sort Is Faster Than You Think-拾光赋

Why Python’s Sort Is Faster Than You Think

Why Python’s Sort Is Faster Than You Think , Timsort Timsort is a sorting algorithm that combines merge sort and insertion sort, and it has good efficiency in practice. Tim Peters...
kity的头像-拾光赋kity1个月前
0456
Leetcode — 1486. XOR Operation in an Array-拾光赋

Leetcode — 1486. XOR Operation in an Array

Leetcode — 1486. XOR Operation in an Array,It’s an easy problem with description being: You are given an integer n and an integer start. Define an array nums where nums[i] = star...
kity的头像-拾光赋kity2个月前
0517
Reorder List: LC 143 medium, GFG hard-拾光赋

Reorder List: LC 143 medium, GFG hard

Reorder List: LC 143 medium, GFG hard,Problem Link: Leetcode, Geeks for geeks Intuition We need to divide two pointers one at start and one at bottom Approach Step 1: first find th...
kity的头像-拾光赋kity2个月前
04812