Teaching Kids Programming: Videos on Data Structures and Algorithms Quicksort is a well-known sorting algorithm – as the name suggests, it sorts quickly. The idea of QuickSort algorithm is …
We can write a BASH Script to print out the current CPU frequency and temperature on Raspberry PI. #pi@raspberrypi:~ $ cat ./cpu_freq.sh #!/bin/bash temp=`head -n 1 /sys/class/thermal/thermal_zone0/temp | xargs …
Given an integer n, return whether its prime factors only include 2, 3 or 5. Constraints n ≤ 2**31 -1 Example 1 Input n = 10 Output true Explanation …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given two sorted list, if we want to merge it, we can do this optimally using two pointers in O(N+M) …
December 9, 2020
algorithms, BASH, bash script, c / c++, c #, C/C++, C# (CSharp), java, Java, javascript, Node.Js, php, PHP, programming languages, python, Python, Rust, string, VBScript, vbscript
You are given a lowercase alphabet string text. Return a new string where every character in text is mapped to its reverse in the alphabet, so that a becomes …
Teaching Kids Programming: Videos on Data Structures and Algorithms We analyse an algorithm for its complexity in terms of runtime and the space allocated. Algorithms can be compared by …