Tag: programming
What happens if you pass a string type to a function? Does it pass by value or reference? What happens if you pass StringBuilder? In C#, the string is …
Bilinear Interpolation (BI) is a very useful mathematical approach that you can use to estimate any given value in a two dimensional grid. If you don’t like Matlab (me …
Here is another nice coding exercise from Leetcode Online Judge: https://oj.leetcode.com/problems/find-minimum-in-rotated-sorted-array/ Assume a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 …
For example, if you want to remove a bit or some bits from a integer (signed or unsigned), you can do this. inline int removeBit(int n, int bit) { …
To be honest, I am not a fan of Matlab but I sometimes have to use matlab to plot nice figures for publications. If you are a ‘traditional’ C-like …