Feel Like Learning

keep curiosity alive

Go To...
  • Home
  • Sample Page

Category: Leetcode

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