Category: javascript
Given an array nums of integers, return how many of them contain an even number of digits. Example 1: Input: nums = Output: 2 Explanation: 12 contains 2 digits …
Last week, we bring the intelligence to Microbit (Microbit Programming: Introduction to AI – Letting Computer Play the Game), letting it play the apple-catching game. This week, we’ll design …
Given an array (or list), and a target element, find all the indices that the element appears in it. For example, Array: , and find the element 5, which …
Last week, we present a apple-catching game in Microbit: Microbit Programming: How to Make a Catching-Apple Game by Using Sprites Objects? And my sons were fond of playing such, …
Last week, we talked about the LED pixels. And by using the knowledge we have learned so far, we can make a pixel running on the Microbit’s LED. Last …