Skip to main content
Commonmark migration
Source Link

#T-SQL, 42 41 bytes

T-SQL, 42 41 bytes

Saved 1 byte thanks to @Neil

Supports all positive integer input

Returns 1 for true, 0 for false

DECLARE @ INT=235959

PRINT-1/~(@/240000+@/100%100/60+@%100/60)

#T-SQL, 42 41 bytes

Saved 1 byte thanks to @Neil

Supports all positive integer input

Returns 1 for true, 0 for false

DECLARE @ INT=235959

PRINT-1/~(@/240000+@/100%100/60+@%100/60)

T-SQL, 42 41 bytes

Saved 1 byte thanks to @Neil

Supports all positive integer input

Returns 1 for true, 0 for false

DECLARE @ INT=235959

PRINT-1/~(@/240000+@/100%100/60+@%100/60)
fixed my name
Source Link
Neil
  • 177.2k
  • 12
  • 74
  • 281

#T-SQL, 42 41 bytes

Saved 1 byte thanks to @Neal@Neil

Supports all positive integer input

Returns 1 for true, 0 for false

DECLARE @ INT=235959

PRINT-1/~(@/240000+@/100%100/60+@%100/60)

#T-SQL, 42 41 bytes

Saved 1 byte thanks to @Neal

Supports all positive integer input

Returns 1 for true, 0 for false

DECLARE @ INT=235959

PRINT-1/~(@/240000+@/100%100/60+@%100/60)

#T-SQL, 42 41 bytes

Saved 1 byte thanks to @Neil

Supports all positive integer input

Returns 1 for true, 0 for false

DECLARE @ INT=235959

PRINT-1/~(@/240000+@/100%100/60+@%100/60)
deleted 31 characters in body
Source Link
t-clausen.dk
  • 3.8k
  • 12
  • 16

#T-SQL, 4242 41 bytes

Saved 1 byte thanks to @Neal

Supports all positive integer input

Returns 1 for true, 0 for false

DECLARE @ INT=235959

PRINT-1/~(@/5000/48+@240000+@/100%100/60+@%100/60)

I was able to golf it 1 byte

@/10000/24 was changed to @/5000/48

#T-SQL, 42 bytes

Supports all positive integer input

Returns 1 for true, 0 for false

DECLARE @ INT=235959

PRINT-1/~(@/5000/48+@/100%100/60+@%100/60)

I was able to golf it 1 byte

@/10000/24 was changed to @/5000/48

#T-SQL, 42 41 bytes

Saved 1 byte thanks to @Neal

Supports all positive integer input

Returns 1 for true, 0 for false

DECLARE @ INT=235959

PRINT-1/~(@/240000+@/100%100/60+@%100/60)
deleted 3 characters in body
Source Link
t-clausen.dk
  • 3.8k
  • 12
  • 16
Loading
deleted 2 characters in body
Source Link
t-clausen.dk
  • 3.8k
  • 12
  • 16
Loading
added 39 characters in body
Source Link
t-clausen.dk
  • 3.8k
  • 12
  • 16
Loading
added 77 characters in body
Source Link
t-clausen.dk
  • 3.8k
  • 12
  • 16
Loading
deleted 1 character in body
Source Link
t-clausen.dk
  • 3.8k
  • 12
  • 16
Loading
Source Link
t-clausen.dk
  • 3.8k
  • 12
  • 16
Loading