kdb+ and q
Questions related to kdb+ and q
cancel
Showing results for
Did you mean:

## Forum Posts

### LeetCode #53: Maximum Subarray

https://leetcode.com/problems/maximum-subarray/ Given an integer array nums, find the subarray which has the largest sum and return its sum. The performance of q solutions to the Maximum Subarray problem appeared on StackOverflow recently. In q/kdb+,...

by Contributor III
• 402 Views
• 5 replies
• 6 kudos

### Next Vector Dōjō on Sun 20 November

The dōjō awaits youAnother intimate Vector Dōjō this coming Sunday 20 November: room for three. Once again we’ll pick small problems from e.g. Project Euler, Rosetta Code, or LeetCode to explore the transition from looping to vector solutions. Mornin...

by Contributor III
• 240 Views
• 1 replies
• 3 kudos

### You could pay Michal Wallace to stop using k

Every qSQL query has an equivalent functional form – in fact, is parsed into it, so there is no difference in their execution. The qSQL queries look like SQL and we use them wherever possible, but the functional forms are more general, and some more ...

by Contributor III
• 215 Views
• 1 replies
• 3 kudos

### Resolved!Mandelbrot man rides again

In the forthcoming episode of the ArrayCast podcast our guest Michal Wallace of 1010data referred to an ad he had once placed on LinkedIn to recruit someone who would learn k3, an ancestor language of q. In the job ad he showed the k3 code to print a...

by Contributor III
• 383 Views
• 3 replies
• 6 kudos

### Project Euler #7: 10,001st prime

https://projecteuler.net/problem=7 By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the 10,001st prime number? Solution 1 Use Eratosthenes’ Sieve to generate enough primes. Then pick the 10,...

by Contributor III
• 171 Views
• 1 replies
• 2 kudos