Newest Questions

2 votes
2 answers
195 views

Background This video goes into ways you can humanize binary, including creating a more compact writing notation using . and | ...
user119818's user avatar
  • 1,631
11 votes
2 answers
316 views

We are going to define a simple little language. A word in this language is a binary string where the longest run of consecutive \$0\$s, is shorter than every (maximal) run of \$1\$s. So for example: \...
Wheat Wizard's user avatar
  • 103k
3 votes
2 answers
160 views

Say there are three multisets A, B, C. An infix condition has form <ON|FACING|NEAR> <a multiset> where ON requires ...
l4m2's user avatar
  • 32.5k
11 votes
4 answers
532 views

Given two sorted lists of same length \$\{a_i\}\$ and \$\{b_i\}\$, find the smallest \$w\$ such that it's possible to connect each pair of points \$(0,a_i)\$ and \$(w,b_i)\$ with paths such that x-...
l4m2's user avatar
  • 32.5k
0 votes
1 answer
109 views

You have to code in python, and the number generated by your code must be bigger than all other current submissions. You need to make your code as small as possible, it has to terminate but you can ...
IAmNotLarry's user avatar
-1 votes
1 answer
132 views

Given a String of opening brackets and the letter G, such that it makes a applicative tree of the leaf node G and ( representing ...
malediscord kitten's user avatar
8 votes
4 answers
598 views

Objective Given a prime number \$p\$ and an integer \$n \geq 2\$, find a degree-\$n\$ primitive polynomial modulo \$p\$. Mathematical explanation When we perform "modular arithmetic" over ...
Dannyu NDos's user avatar
  • 7,381
4 votes
1 answer
197 views

Given a wall maze of 50x50, exactly same generating algorithm, at different RNG, so every two positions are connected by exactly one path, etc. Write two functions: One takes the maze as input and ...
l4m2's user avatar
  • 32.5k
4 votes
1 answer
121 views

What is Buckshot Roulette? Buckshot Roulette is an indie game, released by Mike Klubnika to itch.io in 2023. Okay, but how do you play? To quote from the wiki: "At its core, Buckshot Roulette is ...
Natelolzzz's user avatar
14 votes
10 answers
1k views

The most common way to represent a polynomial is writing it as a linear combination of monomials, i.e., powers of the variable. For example, the polynomial \$p(x) = x^3 + 2x^2 + x + 1\$ is a linear ...
alephalpha's user avatar
  • 51.9k
17 votes
18 answers
2k views

Task Given an unsorted list of integers, order it in such a way that the absolute difference of every two adjacent elements will always be equal to 1: \$|dx| = 1\$ There will be guaranteed one or more ...
Glory2Ukraine's user avatar
2 votes
0 answers
175 views

Given a wall maze of 50x50, write two functions: One takes the maze as input and returns a positive integer; The other takes the integer and walk through the maze from left-top to right-bottom. At ...
l4m2's user avatar
  • 32.5k
11 votes
7 answers
611 views

This was originally a question from interviewstreet.com over a decade ago You are given an array (or whatever - your choice of input) of positive integers \$y_1,\ldots,y_n\$ that represents \$n\$ line ...
Henry's user avatar
  • 219
18 votes
8 answers
1k views

Introduction: When saying numbers out loud, the order is slightly different in Dutch than in English. For a number like \$1234\$: in English you'd say: one thousand, two hundred and thirty-four in ...
Kevin Cruijssen's user avatar
11 votes
17 answers
923 views

A redundant regular expression (regex) is defined here as a regex which has some amount of characters which can be removed while not affecting its functionality -- i.e. it matches the exact same set ...
97.100.97.109's user avatar

15 30 50 per page
1
2 3 4 5
967