LeetCode 994: Rotting Oranges
Solving LeetCode's Rotting Oranges problem in Kotlin, using Breadth-First Search (BFS) to efficiently simulate the rotting of oranges and determine the minimum time required.
Solving LeetCode's Rotting Oranges problem in Kotlin, using Breadth-First Search (BFS) to efficiently simulate the rotting of oranges and determine the minimum time required.
Solving LeetCode's Middle Node problem in Kotlin, efficiently finding the middle node of a singly linked list without needing to know its length.
Solving LeetCode's Linked List Cycle problem in Kotlin, utilizing the fast and slow pointer (Floyd's) algorithm for efficient cycle detection.
Letter Combinations of Phone Numbers, in Kotlin. We’ll explore two approaches: a straightforward iterative solution and a more advanced Breadth-First Search (BFS) style approach.
Solving LeetCode’s Word Break problem in Kotlin, utilizing recursion and memoization to efficiently determine if a string can be segmented into words from a dictionary.
Solving LeetCode's Middle Node problem in Kotlin, using a clever approach to find the middle node of a singly linked list without knowing its length.
Solving LeetCode's Linked List Cycle problem in Kotlin, using the fast and slow pointer approach to efficiently detect cycles.
Implementing the classic C++ atoi function in Kotlin, with a focus on handling edge cases like overflow, whitespace, and signs.
A simple and efficient solution to verify if a ransom note can be constructed from a magazine using HashMaps in Kotlin.
Optimizing area calculations with the efficient Two Pointer technique in Kotlin.