Teaching Kids Programming: Videos on Data Structures and Algorithms You are given integers n, a and b. You are standing in a line of n people. You don’t know …
Given a string s, return true if s is a good string, or false otherwise. A string s is good if all the characters that appear in s have …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a square matrix mat, return the sum of the matrix diagonals. Only include the sum of all the elements …
We sometimes need in BASH script to display messages with different format/colour to terminal console. For example, the warnings messages are blue, and error messages are red. We can …
Teaching Kids Programming: Videos on Data Structures and Algorithms Write a function to delete a node in a singly-linked list. You will not be given access to the head …
On Linux, we can cat the file “/proc/meminfo” to display memory related information: $ cat /proc/memoinfo MemTotal: 32939372 kB MemFree: 31155452 kB MemAvailable: 31269760 kB Buffers: 242964 kB Cached: …