Login
Discover
Waves
Decks
Upgrade
Login
Signup
Topics
New
Trending
Hot
New
New
Trending
Hot
New
Controversial
Rising
Promoted
data-structures
cryptoizotx
programming
Wednesday, December 26, 2018 5:00 PM
One algorithm a day: Keeping track of the largest element in a stack
Imagine that you want to be able to access the largest element in a stack. I know you were dying to do it ! You already have implementation of the stack class: class Stack<Item> { // initialize an
$ 0.000
1
cryptoizotx
swift
Monday, December 24, 2018 2:04 AM
One algorithm a day. Write a function that returns best profit you could made from trading.
Write an efficient function that takes stockPrices and returns the best profit I could have made from one purchase and one sale of one share of Apple stock yesterday. func getMaxProfit(_
$ 0.000
2
cryptoizotx
programming
Saturday, December 22, 2018 5:46 PM
One algorithm a day: floor of the square root of the input
Description Implement a function that takes in a 32 bit integer and returns another 32 bit unsigned integer that is the floor of the square root of the input Implementation Function can be implemented
$ 0.000
4
jordaan01
dmania
Monday, May 14, 2018 8:39 PM
Linked list
View post on dMania
$ 0.000
1
montu333
crypto
Saturday, August 2, 2025 8:14 AM
Promoted
🇺🇦 Why I Keep Writing from Ukraine — And Why You Should Listen
✍️ In a world where truth is blocked, throttled, or erased — Hive keeps our words alive. 🕊️ We Are Still Here More than 2 years into the full-scale invasion, Ukraine is still standing. But what about
$ 0.233
19
1
2
ivlad
programming
Wednesday, April 4, 2018 10:15 AM
The Sieve of Eratosthenes Part 1: efficiently generating primes up to n
The Sieve of Eratosthenes is an algorithm for finding prime numbers in a range. Conceptually, it's a very simple algorithm. Let's assume our range is always [2, n]. In our examples, we'll consider n=100.
$ 0.000
2
2
justyy
programming
Friday, March 23, 2018 7:28 PM
ACM题解系列之 - 最小堆栈 (Min Stack) - Design a Stack with constant time in Push, Pop and Min
Implement a stack with min() function, which will return the smallest number in the stack. It should support push, pop and min operation all in O(1) cost. class MinStack { public: MinStack() { // write
$ 24.077
173
8
black-ice
computer-science
Wednesday, February 21, 2018 12:07 AM
What's a Merkle Tree?
Each node in the Merkle tree performs MD5 hashing of input data. Parent nodes concatenate the hashes of their children before hashing. (Credit: T. L. Oliver CC BY-SA 4.0) If you've tried to understand
$ 0.049
3
orcunland
data-structures
Monday, February 19, 2018 5:08 AM
Why do we only use C in data structures and not C++?
Data Structures are particular way of organizing data in a computer so that it can be used efficiently. (Wikipedia Definition) So you can not state that it must be done only in one programming language,
$ 0.000
2
robotgirl2024
Galaxia Vtuber
Friday, August 8, 2025 4:11 AM
Promoted
Un desconocido en determinación :/@Galaxia Vtuber. concurso |poesía | 2025
336 (POESIA) total Poesía #103 en este blog La #comunidad # Galaxia Vtuber. post(4) ♣️🎬♣️🎬♣️🎬♣️🎬♣️🎬♣️🎬♣️🎬♣️🎬 En mi cabeza con mil pensamientos... para escribir algo que cautive a un ser que desconozco.
$ 4.432
187
14
5
amos1969
coding
Saturday, February 3, 2018 11:33 PM
Data Structures in Python - Part 2 - Queues
Queues in Python A Queue A queue is another of the standard data structures that we find throughout Computer Science. Unlike the stack, the queue is a FIFO structure (First In First Out). The items which
$ 0.026
4
1
amos1969
coding
Friday, February 2, 2018 5:03 PM
Data Structures in Python - Part 1- Stacks
Stacks in Python A Stack A stack is a standard computer science data structure that can be described as LIFO (Last In First Out). We "stack" each data item on top of the previous one (actually
$ 0.445
11
5
2
Top communities
Create decentralized community