- Aggregated Pivot Table
- Bit Shifting
- Bitwise XOR
- Calculate Tick Size
- Collapsing Dictionaries
- Graphs - Breadth First Search
- Graphs - Depth First Search
- Graphs - Detecting Cycles
- Greatest Common Divisor
- Identity Matrix
- Least Common Multiple
- Log Parser
- Nanosleep
- One Hot Encoding
- Parent Child ID Mapping
- Slippage
- Split Training and Testing Sets
- Stratified Sampling
- Symbol Column Update
- Table Indexing
- Word Count
Zero Matrix
Question: Define a function 'zm' that returns an m x n zero matrix
More Information:
https://en.wikipedia.org/wiki/Zero_matrixExample
q)zm[3;2]
0 0
0 0
0 0
Solution
######## solution.q ########
zm:{(x;y)#0}
Explanation: The function '#' will reshape the right hand side atom/list into an m x n matrix if two dimensions are provided on the left hand side