Feel Like Learning

keep curiosity alive

Go To...
  • Home
  • Sample Page

Category: Algorithms

Formula to “rank girls” in the “Social Network” movie
May 23, 2023
 |  No Comments
 |  Algorithms

In the movie “Social Network”, Mark asked Eduardo for the formula to “rank girls” in facemesh.com. The formula above is commonly known as the Elo rating system. It is used to calculate the relative skill levels of players or teams in competitive games, such as chess or sports. In the formula: The Elo rating system […]

Read More »

leetcode 322 coin change
ALGORITHMS PRACTICE LEETCODE 322 Coin Change
December 20, 2020
 |  No Comments
 |  Algorithms, dynamic programming, knapsack, Leetcode

Here is the question. I came up with the answer without looking the answer, bottom up dynamic programming (dp) is not a very easy to design at the beginning. Starting from top down + cache, I wrote it a few times, and simplified it a little bit each time, and finally passed the OJ. Python […]

Read More »

Leetcode 222 solution
Algorithms Practice Leetcode 222 Count Complete Tree Nodes in C++ and Java
December 18, 2020
 |  No Comments
 |  Algorithms, Leetcode, tree

Problem Statement Definition of a complete binary tree from Wikipedia:In a complete binary tree every level, except possibly the last, is completely filled, and all nodes in the last level are as far left as possible. It can have between 1 and 2h nodes inclusive at the last level h. Example: The easiest way is to traverse […]

Read More »

Recent Posts

  • Leetcode 767 Reorganize String
  • How to solve “Failed to connect to port after 215 ms: Couldn’t connect to server” with a Flask Backend
  • How to start ssh-agent on Ubuntu
  • How to install helm on Mac OS
  • Examples of Interacting with Cassandra or ScyllaDB using Python

Recent Comments

    Archives

    • September 2024
    • February 2024
    • January 2024
    • December 2023
    • June 2023
    • May 2023
    • November 2022
    • December 2020

    Categories

    • Algorithms
    • apache2
    • coding
    • dynamic programming
    • knapsack
    • Leetcode
    • Python
    • Radis
    • tree
    • Uncategorized
    • wordpress

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org

    Recent Tweets

    Use twitter widget for twitter feed.

    Recent Posts

    • Leetcode 767 Reorganize String
    • How to solve “Failed to connect to port after 215 ms: Couldn’t connect to server” with a Flask Backend
    • How to start ssh-agent on Ubuntu
    • How to install helm on Mac OS
    Gravida