Menu
Tabs vs Spaces: The eternal holy war.
Home
Hot
Random
Search
Browse
AI
AWS
Agile
Algorithms
Android
Apple
Backend
Bash
C++
Cloud
Csharp
All Categories
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
HTTP 418: I'm a teapot
The server identifies as a teapot now and is on a tea break, brb
array Memes
Rate My Sorting Algorithm
Javascript
Webdev
Algorithms
Programming
Frontend
6 months ago
466.1K views
1 shares
Ah, the legendary "setTimeout Sort" algorithm. Efficiency: O(whenever JavaScript feels like it). The code loops through an array and uses setTimeout to log each value with the item itself as the delay. So smaller numbers appear first in the console, creating an "accidental" sorting mechanism that relies entirely on the browser's timer queue. It's like asking your intern to sort papers by throwing them in the air and picking them up in whatever order they land. Somehow it worked this time, but don't tell your senior dev.
Dad Programmer Humour
Frontend
1 year ago
200.8K views
0 shares
[text] John the stripper VAo . Wrote an algorithm that gives a sorted array to the user with on time complexity. Its literally faster than merge sort. Here is a peak at the code am working on. Currently working on edge cases will be done in no time. main.c include stdio.h int main int n1000 int arrn printfenter sorted array forint i0 i1000i
Array Index Out Of Bounds Exception
Programming
1 year ago
338.5K views
0 shares
Content Einstein when he was 22 Me at 22 Discovers relativity, mass energy equivalence photoclectric effect, confirms existence of atom mathematically Why is this array's index getting out of bounds?
Chad Script
Javascript
Java
Frontend
Backend
1 year ago
245.6K views
0 shares
Content People learning JavaScript: "I'II use array.sort() to sort this list of numbers!" JavaScript: a 5645,1, 21, 100000, 30, 4, 566, 561 1 (8) 5645, 1, 21, 100000, 30, 4, 566, 56 a.sort () (8) f1, 100000, 21, 30, 4, 56, 5645, 566
Only Way To Sort
Programming
1 year ago
204.8K views
0 shares
Content void sort (std:: vectorint v) f while (!std::issorted(v.begin (), v.end())) I std: :randomshuffle (v.begin (), v.end ()) ; ) IF YOU CAN THINK OF A BETTER WAY TO SORT ARRAYS FDLIKE TO HEAR IT
Oh Wow
Programming
1 year ago
196.5K views
0 shares
Content He can find the second largest number without sorting the array...
If Htmlwas Aprogramming Language
Programming
Python
Frontend
1 year ago
237.4K views
0 shares
Content 18 19 20 21 22 int int number10number array myNumbers int element20element element50element element60 element element90element int myNumbers array array array appendnumber append print print myNumbers
Logitech 4k Webcam
Affiliate
Webcams
Logitech
SUPPORT WORK FROM ANYWHERE WITH SYNC: Whether employees are in the office, at home, or somewhere else, Sync device management software helps everyone stay connected by letting you ensure their Logite…
Quality Over Quantity
Programming
1 year ago
191.9K views
0 shares
Content Welcome to the Stalin Sort Repo E mathew V mathewmastodon.social 1 came up with a single pass O(n) sort algorithm I call StalinSort. You iterate down the list of elements checking if they're in order. Any element which is out of order is eliminated. At the end you have a sorted list. 20181026 04:20:16 What is Stalin Sort? ? Introduction Stalin Sort is an efficient sorting algorithm, serving as a systematic method for placing the elements of a random access file or an array in order. Stalin Sort is also know as the best sorting algorithm of all times because of its AMAZING capacity of always ordering an array with an O(n) performance. Who are you, who are so wise in the ways of science?
How To Make Pretzels
Python
Backend
1 year ago
255.3K views
1 shares
Content S can you make soft pretzels with the following ingredients? flour, baking powder, salt, greek yogurt? Yes, you can make soft pretzels with those ingredients! Here's a simple recipe: python Copy code import numpy as np def makesoftpretzels(flour, baking powder, salt, greek yogurt) : Combine dry ingredients dryingredients np.array(flour, baking powder, salt) dough - np. sum(dryingredients) Add greek yogurt to form dough dough greek yogurt Knead dough for about 5-10 minutes until smooth knead time - 10 minutes dough kneaded - dough knead time Shape into pretzels pretzels - np.array (dough kneaded) return pretzels Example usage pretzel dough - make softpretzels(2, 1, 0.5, 1) quantities in cups print("Soft pretzel dough prepared:", pretzel dough) Instructions: 1. Preheat the oven to 425F (220C). 2. Mix 2 cups of flour, 1 tablespoon of baking powder, and 0.5 teaspoons of salt in a bowl. 3. Add 1 cup of Greek yogurt and mix until it forms a dough.
Consume Int16 Array
Programming
1 year ago
183.4K views
0 shares
Content CONSUME INTO ARRAYO EAT MY SHORTSO
You Had One Job
Javascript
Java
Frontend
Backend
1 year ago
242.2K views
0 shares
Content People learning JavaScript: "I'II use array.sort) to sort this list of numbers!" JavaScript: 11, 100000, 24, 30, 4
Language Designers Celebrating Xmas
Programming
1 year ago
258.8K views
0 shares
Content Arrays start at 1 MathMatize
Beelink SER5 Mini Pc,AMD Ryzen 5 5625U (6C/12T,up to 4.3 GHz),Mini Computer with 16GB DDR4/500GB NVMe SSD,Support Triple Screen Display, WiFi 6, BT 5.4,Type-C, 2.5G LAN
Affiliate
Mini PCs
Beelink
【High Performance Processor】The beelink mini pc powered with AMD Ryzen 5 5625U 6Core/12Thread( up to 4.3GHz), stable and reliable performance, reduced lag. The mini computer can be used for video and…
Loading more content...
Today's picks
It's AI Fault
Programming
1.9M views
5 days ago
Acer Single Monitor Mount, Fully Adjustable Monitor Arm Fits 17 to 34 Inch Screens, Gas Spring VESA Mount with C-Clamp & Grommet Base, Computer Desk Arm with Tilt Swivel Rotate Supports 4.4-19.8 lbs
Affiliate
$45.99
What shall we do with a drunken DevOps?
Programming
92.0K views
4 years ago