Inspired by this question: Make a function (or a full program) that receives a list of numbers and outputs the list rearranged, so that even-indexed numbers appear first, and odd-indexed numbers follow. The values of the numbers themselves don't affect ordering - only their indices do. All indices are zero-based. For example: Input: [0, 1, 2, 3, 4] Output: [0, 2, 4, 1, 3] Another example: Input: [110, 22, 3330, 4444, 55555, 6] Output: [110, 3330, 55555, 22, 4444, 6] Use most natural represent...| Recent Questions - Code Golf Stack Exchange
Access Softek, a pioneer in digital banking technology, announced a strategic partnership with Array, a leading provider of embeddable fintech products. Through this integration, Access Softek introduces Access LifeHub, a new suite of digital services that empower consumers to manage their credit, identity, privacy and more directly within their mobile and... The post Access Softek Partners with Array to Deliver Embedded Credit, Identity, Privacy Tools and More in Digital Banking appeared fi...| GlobalFinTechSeries
The \$\text{argwhere}\$ function takes a list of values and a predicate/boolean function as arguments and returns a list of indices where the predicate function returns true in the input list. For example, argwhere([1, 2, 3, -5, 5], x -> x > 2) would produce an output of [2, 4] because those are the (0-indexed) indices whose values are greater than two. Challenge Implement the \$\text{argwhere}\$ function in your language of choice. Format For the purposes of this challenge, we will deal with...| Recent Questions - Code Golf Stack Exchange
Why is a raven like a writing-desk? (Lewis Carroll)| blogs.perl.org
Given an array a that contains only numbers in the range from 1 to a.length, find the first duplicate number for which the second occurrence has the minimal index. In other words, if there are more than 1 duplicated numbers, return the number for which the second occurrence has a smaller index than the second occurrence of the other number does. If there are no such elements, your program / function may result in undefined behaviour. Example: For a = [2, 3, 3, 1, 5, 2], the output should be f...| Recent Questions - Code Golf Stack Exchange
Background Recently, I was installing updates on my pc with Pacman (I use arch btw) and noticed the order it downloaded files was like this Start with the largest 4 downloads When a download completes, start downloading the next biggest file. Since the biggest file takes the longest to download, you'll often see the second or third biggest actually complete first. Interesting. Challenge Given a list of download sizes, eg 50, 40, 30, 20, 11, and the amount of downloads that can be running simu...| Recent Questions - Code Golf Stack Exchange
本文永久链接 - https://tonybai.com/2025/07/05/go-is-8020-language 大家好,我是Tony Bai。 如果你写了一段时间的 Go,你可能会有一种独特的感觉。一方面,它简洁、高效、可靠;另一方面,你又会时常觉得它“| tonybai.com
Here's the CFP for ARRAY '25 this year! Dear all We are organising ARRAY'25 which is co-located with PLDI'25. This workshop is dedicated to array programming, which is interpreted very liberally. We are interested in classical array programming a la APL, array theories, semantics, verification, type systems, compiler optimisations, parallel| Fastidious Elegance
A few forward looking SQL dialects have started introducing lambda expressions to be used with functions operating on arrays| Java, SQL and jOOQ.
There have been a number of engineering improvements to Dask Array like consistent chunksizes in Xarray rolling-constructs and improved efficiency in map_overlap. Notably, as of Dask version 2024.11.2, calculating quantiles is much faster and more reliable. Calculating Quantiles with Xarray Calculating quantiles is a common operation for geospatial …| Patrick Hoefler
Running large-scale GroupBy-Map patterns with Xarray that are backed by Dask arrays is an essential part of a lot of typical geospatial workloads. Detrending is a very common operation where this pattern is needed. In this post, we will explore how and why this caused so many pitfalls for Xarray …| Patrick Hoefler
Exploding tiles in J.| mmapped.blog
This week on the php podcast, Eric and John discuss PHP 8.4 and its new features, Pie, PHPStorm, PHPTek, Yazi for file management in the terminal, and more. Links from the show: PHP: PHP 8.4.0 Release Announcement GitHub – php/pie: The PHP Installer for Extensions Announcing the Pre-Release of the PHP Installer for Extensions […]| PHP Architect
When parsing a string that is divided by a separator char, getting the first N values OR last N values is a common scenario when dealing with: IP address separated by periods, e.g. “10.11.12.13” File path separated by forward slash “/tmp/myfolder/subpath1/subpath2/subpath3” Fully qualified domain separated by periods “sub1.sub2.my.domain.com” Getting first N values Getting the first ... Bash: extracting first or last N octets, paths, or domain from string with fixed separator| Fabian Lee : Software Engineer
The need to configure a specific pod’s container arguments is a common Kubernetes administration task. As examples, you might need to enable verbose logging, set an explicit value to override a default, or configure a host name or port set in a container’s arguments. In the example below, we are targeting the ‘metrics-server’ in the ... Kubernetes: patching container arguments array with kubectl and jq| fabianlee.org
//define an array in JS| zazu.berlin– FILM + DIGITAL sagt ...
I stumbled upon a very interesting question on Stack Overflow about how to use jOOQ’s MULTISET operator to nest a collection, and then filter the result by whether that nested collection cont…| Java, SQL and jOOQ.