Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 31516

This challenge is intended to be solved by using, manipulating, accepting as input, or outputting numeric values.

152
votes
57answers
fewest number of bytes in total. Rules: You can only use a single language for all integers Snippets are allowed! To keep it fair, all characters must be encoded using a single byte in the language …
asked Jun 3 '17 by Stewie Griffin
92
votes
36answers
Write a piece of code that is executable in at least three different languages. The code must output the integer 1 in language number one, 2 in language number two, 3 in language number three etc … and documentation, and has been used by at least two users on PPCG prior to using it in this challenge. It must also adhere to these 4 rules. The score of your submission is the number of bytes in …
asked Dec 3 '15 by Stewie Griffin
46
votes
12answers
The French spell out numbers in a peculiar way. 1-16 are "normal" 17-19 are spelled out 10+7. 10+8, 10+9. 20-69 are "normal" (OK, OK! Not really, but they are in this challenge) 70-79 are 60+10, 60 …
asked Apr 26 '17 by Stewie Griffin
42
votes
49answers
Challenge: Take a string of upper or lower case letters as input (optional), and calculate the score that string would get in a game of Scrabble in English. Rules: The score of each letter is as fo …
asked Apr 17 '18 by Stewie Griffin
40
votes
22answers
Input: A positive integer n consisting of digits in the range 0-9. Challenge: If d is the highest digit in the integer, assume the base of the number is d+1. E.g. if the integer is 1256 then you … : reach a single digit integer. Convert the integer from base-(d+1) to base-10 Find the base of this new integer (again, base-(d+1) where d is the highest digit in the new number) Go to step 1 …
asked Jun 28 '17 by Stewie Griffin
38
votes
31answers
Challenge: Take a vector / list of integers as input, and output the largest number that's adjacent to a zero. Specifications: As always, optional input and output format You may assume that …
asked Sep 21 '16 by Stewie Griffin
37
votes
40answers
A number is balanced if the sum of the digits on each half of the number is equal, so: 1423 is balanced because 1+4 = 2+3, so is: 42615 because 4+2=1+5. Note that the middle digit is not included on … either side (or it's included on both sides) if there's an odd number of digits. Challenge: Take a positive integer as input, and output a truthy value if it's balanced and a falsy value if it's …
asked Sep 23 '16 by Stewie Griffin
36
votes
6answers
Python is the fastest-growing major programming language today. It is the most wanted language for the third year in a row, meaning that developers who do not yet use it say they want to learn it.[1] …
asked Apr 16 by Stewie Griffin
34
votes
65answers
A simple one: Take a positive integer n less than 1000, and output the integers from 1 to n interleaved with the integers from n to 1. You must concatenate the numbers so that they appear without any …
asked May 30 '17 by Stewie Griffin
32
votes
50answers
The sequence contains the decimal representation of the binary numbers of the form: 10101..., where the n-th term has n bits. The sequence is probably easiest to explain by just showing the relations …
asked Jan 22 '18 by Stewie Griffin
26
votes
47answers
Take a positive integer n as input, and output a n-by-n checkerboard matrix consisting of 1 and 0. The top left digit should always be 1. Test cases: n = 1 1 n = 2 1 0 0 1 n = 3 1 0 1 0 1 0 1 0 …
asked Jun 15 '17 by Stewie Griffin
26
votes
29answers
Take a square matrix containing positive integers as input, and calculate the "rotated sum" of the matrix. Rotated sum: Take the sum of the original matrix and the same matrix rotated 90, 180 and 27 …
asked Jan 20 '18 by Stewie Griffin
25
votes
48answers
A simple one: Take a list of positive integers as input and output the numbers modulus their 1-based index in the list. If the input integers are {a, b, c, d, e, f, g} then the output should be {a%1, …
asked Jun 14 '17 by Stewie Griffin
24
votes
17answers
iteration to compute a digit sum. The process continues until a single-digit number is reached. For example, the digital root of 65536 is 7, because 6 + 5 + 5 + 3 + 6 = 25 and 2 + 5 = 7. Sorting … so on. Challenge: Take a positive integer n as input, and output the n'th number in the sequence described above. You may choose if the list is 0-indexed of 1-indexed. The sequence goes like …
asked Jun 17 '18 by Stewie Griffin
23
votes
12answers
Challenge: Given a square input matrix A, pad the matrix with one row and one column on all four sides. The value of each element in the top and bottom row should be the sum of the elements in each …
asked Jul 4 '17 by Stewie Griffin

15 30 50 per page