Category: Knowledge

  • C++ Recursion: Pros and Cons

    Pros of Recursion: Cons of Recursion: When considering recursion, it’s important to assess problem requirements, input size, and performance constraints. While recursion can be powerful, it’s not always the optimal choice. Anything you can write recursively can be written iteratively Read more

  • C++ Recursion: introduction and example codes

    In C++, recursion is a programming technique where a function calls itself directly or indirectly. A C++ recursive function typically consists of two parts: Problems Write a recursive function to find the factorial of n Write a recursive function to sum the integers from 1 to n Write a recursive function to compute:f(n) = 1 Read more

  • Effortless Setup of a 3.5-inch TFT LCD Touch Display XPT2046 on the Raspberry Pi

    Let me talk about the adding of a 3.5 inch TFT LCD touch display XPT2046 on Raspberry Pi. It is easy and straight forward. Plug the display on to the Raspberry Pi, with the pins flushed all the way to the corner. The touch screen should be illuminated white when the power source is connected Read more