Jorge Villegas

Software Developer

Solving Leetcode 94. Binary Tree Inorder Traversal

Given the root of a binary tree, return the inorder traversal of its nodes' values. The inorder traversal of a binary tree is the nodes...

Solving Leetcode 102. Binary Tree Level Order Traversal

From Leetcode: Given the root of a binary tree, return the level order traversal of its nodes' values. (i.e., from left to right, level by...

Implementing a Binary Tree

If I had to pick the single most important topic in software development, it would be data structures. One of the most common and...

Solving Leetcode 31. Next Permutation

Question from Leetcode. A permutation of an array of integers is an arrangement of its members into a sequence or linear order. For example, for arr...

Solving k largest(or smallest) elements in an array.

Question: Write an efficient program for printing k largest elements in an array. Elements in an array can be in any order.For example: if...

Popular

How to 10x Your LLM Prompting With DSPy

Tired of spending countless hours tweaking prompts for large...

Google Announces A Cost Effective Gemini Flash

At Google's I/O event, the company unveiled Gemini Flash,...

WordPress vs Strapi: Choosing the Right CMS for Your Needs

With the growing popularity of headless CMS solutions, developers...

JPA vs. JDBC: Comparing the two DB APIs

Introduction The eternal battle rages on between two warring database...

Meta Introduces V-JEPA

The V-JEPA model, proposed by Yann LeCun, is a...