You have FIVE (5) seconds to write code that stops dubs from appearing in the post numbers on your board

you have FIVE (5) seconds to write code that stops dubs from appearing in the post numbers on your board

go

Attached: 5w5Q3XH.png (320x240, 136K)

hi moot

Nice.

if (post.number[sizeof(post.number)-1] == post.number[sizeof(post.number)-2])
post.remove();

if(dubs)
Dont();

PostNumber[PostNumber.length-1]='X';

Append 000 to every post number. Now all numbers are at least trips.

trips are dubs tho

REKt

if post.num[-2:-1]%11 == 0:
post.block()

this is such a generic question. The simplest solution would be to have counters for the 10s, 100s, 1000s, 10000s, 100000s, e.t.c. and see when the respective counter gets equal to 10 and just increase the post counter accordingly.
another solution is to wrap around every 10 posts.
if(postnumber==10)
postnumber= 0;

while(((n%100/10)-n%10)==0)
n++;

if (postNumber % 10 == (postnumber // 10) % 10 )
delet_this()

Example:

1244 % 10 = 4

1244 // 10 = 124

124 % 10 = 4

4 == 4? yes

DELETE

no you dumb cunt you can do this with simple math check

CSS isnt code dumbass.

OP here.

Thanks for reminding me why I don't come to Jow Forums

If post number dubs
then public ban poster
CD
Cd
CD code

postNumber=postNumber*100+12;

Attached: 1351126579669.jpg (240x240, 9K)

very concise, you're hired

Shim sham la lam lam lag it
You're a fucking faggot

Open console
Edit CSS to replace post number with string of X's

King me
// dubs.js
module['exports'] = function (id) {
const aid = id.split('').reverse()
const n = aid[0]
let getc = 0
for (const s in aid)
if (aid[s] == n)
getc++
else
break
return getc
}

const isDubs = require('./dubs.js')
const id = '65537444'
const iD = Boolean(isDubs(id))
process.stdout.write(iD)

Attached: 1517617898161.gif (220x216, 186K)

Generating tons of garbage every time it's called. Super slow. Increases server cost immensely, you're not hired. Please leave.

That's the point OP

Who is OP?