kdb+ and q
Q+A on all things kdb+ database and the q language
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Return to the Vector Dojo

Last few puzzles still to write up for AOC 2022, but it’s time to Return to the Vector Dojo. The Vector Dojo is a free, informal 90-minute video call to practice vector-programming techniques together. It’s easy to get started in q using expressions ...

SJT by Valued Contributor
  • 2 replies
  • 2 kudos

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+,...

SJT by Valued Contributor
  • 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...

SJT by Valued Contributor
  • 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...

Screenshot 2022-11-10 at 11.29.18.png
SJT by Valued Contributor
  • 3 replies
  • 7 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,...

SJT by Valued Contributor
  • 1 replies
  • 2 kudos