All Questions

0 votes
0 answers
112 views

Shortest way to cause a seg fault at 0x9c?

In honour of CrowdStrike's exception at 0x9c, what's the shortest way (character-wise) to cause a segfault by dereferencing address 0x9c? The best I can come up with is: ...
0x9c's user avatar
  • 29
1 vote
1 answer
107 views

Compute Dickman

Input A floating point number \$x\$ between 1 and 8 inclusive. Output The Dickman function of \$x\$. The Dickman–de Bruijn function \$\rho(u)\$ is a continuous function that satisfies the delay ...
Simd's user avatar
  • 3,098
3 votes
18 answers
295 views

Check if two lists are permutations of each other [duplicate]

Challenge Given two lists of equal length, find if one of them is a permutation of the other. Output truthy or falsy values, or 1 or 0. Test case Examples ...
Andy Liu's user avatar
  • 121
13 votes
15 answers
855 views

Reorder for smallest largest prefix sum

Given a multiset of integers, order them such that the largest absolute prefix sum $$\max_i \left| \sum_{k<i} a_k \right|$$ is smallest. Output any solution if multiple exist. You can assume input ...
l4m2's user avatar
  • 25k
18 votes
19 answers
4k views

Wait, ASCII was 128 characters all along?

Challenge In this challenge, you have to take a nonnegative integer as input, convert it into base-128 bytes (0 → 0x00, 127 → ...
squareroot12621's user avatar
-6 votes
0 answers
68 views

Choosing the best approach for developing a system for buyers to sell to multiple sellers on your market place [closed]

I have been messing around with the PayPal API v2, and I have asked a Question with no reply of what to do next once the seller onboards. So then I looked at Braintree and started to get used to that ...
redoc01's user avatar
  • 89
20 votes
15 answers
2k views

Sorting with a deque

You're given an array of positive integers. Your job is to sort them using an initially empty deque (double-ended queue) by the following procedure: Take a number from the front of the array, and ...
Bubbler's user avatar
  • 77.5k
-4 votes
1 answer
77 views

Calling functions and addressing arrays without operators [closed]

Is there a language where they write just ai for a[i] and sqrt2 for sqrt(2). I mean that arrays are treated like functions and calling a function does not need an operator.
Марат Рамазанов's user avatar
7 votes
39 answers
1k views

Calculate sum of self-exponentation

Given an array of positive integers, calculate the sum of each number raised to its own power. For example, given 4,6,7, the code needs to return \$4^4+6^6+7^7=...
Andy Liu's user avatar
  • 121
14 votes
9 answers
955 views

Draw a Regular Reuleaux Polygon

Related: Draw A Reuleaux Triangle!, Draw a regular polygon A Reuleaux polygon is a curve of constant width made up of circular arcs of constant radius. The most well-known Reuleaux polygon is the ...
noodle person's user avatar
16 votes
16 answers
2k views

o y u (or and or)

In Spanish, the word 'or' is represented as 'o', with the exception of cases where the following letter starts with 'o' or 'ho' (including accented forms like 'ó' or 'hó'). Numbers also follow this ...
Fmbalbuena's user avatar
  • 4,167
17 votes
9 answers
2k views

A Ring of Cubes

Given an integer greater than or equal to 2, output ASCII-art resembling an isometric-perspective cube ring with that side length. Expected outputs given below for 2, 3. You can imagine the rest. You ...
noodle person's user avatar
2 votes
2 answers
467 views

Largest possible relative error

Output \$20\$ float64s with absolute value between 1 and 2 inclusive whose sum has the largest possible relative error. We can assume the true sum is not zero. The sum is to be computed from left to ...
Simd's user avatar
  • 3,098
9 votes
12 answers
3k views

Keyboard Ping Pong

Keyboard Ping Pong (This question was inspired by this post.) Challenge Given a string of letters, determine if the word "ping-pongs" across the keyboard. (Letters alternating between sides ...
SanguineL's user avatar
  • 738
9 votes
13 answers
1k views

Is it an option for the ls utility specified in POSIX.1-2017?

The ls utility lists specified directory content. It is infamous for stupidly lots of options which is known for anti-pattern design of implementing software.(...
鳴神裁四点一号's user avatar

15 30 50 per page
1
2 3 4 5
942