Stack exchange scrapes
Collection
4 items • Updated • 1
text stringlengths 26 126k |
|---|
[Question]
[
Challenge Taken with permission from my University Code Challenge Contest
---
For some years now, the number of students in my school has been growing steadily. First the number of students was increased by classroom, but then it was necessary to convert some spaces for some groups to give classes th... |
[Question]
[
**Problem:**
Find the number of leading zeroes in a 64-bit signed integer
**Rules:**
* The input cannot be treated as string; it can be anything where math and bitwise operations drive the algorithm
* The output should be validated against the 64-bit signed integer representation of the number, regar... |
[Question]
[
My two kids like to play with the following toy:
[](https://i.stack.imgur.com/BYhak.jpg)
The colored areas with the shapes inside can be touched and the turtle then lights the area and plays a sound or says the name of the color or the shape inside. The m... |
[Question]
[
Use any programming language to display "AWSALILAND" in such a way, so that each letter is in a new line and repeated as many times as its position in the English alphabet. For example letter, (A) should be displayed just once because it is the first letter of the alphabet. Letter D should be display... |
[Question]
[
**Final Standings**
```
+----------------------------------+---------+---------+---------+----------------------------+
| Name | Score | WinRate | TieRate | Elimination Probability |
+----------------------------------+---------+---------+---------+-------------------... |
[Question]
[
Given integers `N , P > 1` , find the largest integer `M` such that `P ^ M ‚â§ N`.
### I/O:
Input is given as 2 integers `N` and `P`. The output will be the integer `M`.
### Examples:
```
4, 5 -> 0
33, 5 -> 2
40, 20 -> 1
242, 3 -> 4
243, 3 -> 5
400, 2 -> 8
1000, 10 -> 3
```
### Notes:
The input wil... |
[Question]
[
Today's challenge is simple: Without taking any input, output any valid sudoku board.
In case you are unfamiliar with sudoku, [Wikipedia describes what a valid board should look like](https://en.wikipedia.org/wiki/Sudoku):
>
> The objective is to fill a 9×9 grid with digits so that each column, each... |
"[Question]\n [\nAs I'm applying for some jobs whose job advert doesn't state the salary, I ima(...TRUNCATED) |
"[Question]\n [\nBackground: the Ramsey number \\$R(r,s)\\$ gives the minimum number of vertice(...TRUNCATED) |
"[Question]\n [\n*This challenge is based on, and contains test cases from, [a programming cour(...TRUNCATED) |
A Scrape of the codereview stack exchange, good for high quality code