NeetCode - Median of Two Sorted Arrays
Idea Before solving the problem The initial approach I tried involves converting both input arrays into deques, allowing me to efficiently pop elements from both the front and the back. This method...
Idea Before solving the problem The initial approach I tried involves converting both input arrays into deques, allowing me to efficiently pop elements from both the front and the back. This method...
Idea Before solving the problem In tackling the Combination Target Sum problem, I realized that the target sum can be constructed from smaller sums. This insight led me to consider a dynamic progra...
Idea before solving the problem Although the difficulty level of this problem is categorized as medium, it becomes straightforward if you have a solid understanding of dynamic programming. The main...
Idea before solving the problem I realized that the requirement to attend all classes can be represented as a graph, where each course is a node and the prerequisites are the edges connecting these...
Getting Started with Godot: A GDScript Cheat Sheet I recently started exploring Godot, and I’ve found that the syntax of GDScript is quite similar to Python. I asked ChatGPT for a cheat sheet, whi...
Game Games are actively engaging multimedia experiences. While the game engine is a crucial component for creating a great game, additional elements like music, design, and sound effects are essen...
PyFEM I developed PyFEM, a finite element method (FEM) code specifically designed for topology optimization this time. The main goal behind creating this code is to provide a straightforward and pr...
Evolutionary algorithm Evolutionary algorithms (EA) are a subset of optimization algorithms inspired by the process of natural selection, the mechanism behind biological evolution. EAs operate on a...
Optimal transport Optimal transport begins with a fundamental question: How can we efficiently transfer items from one location to another? To illustrate this, let’s consider an example problem: E...
Motivation Graph neural networks (GNNs) can be considered an advanced form of convolutional neural networks (CNNs). While CNNs operate by utilizing the values of neighboring pixels, GNNs allow for ...