Problem I’m looking for general review and improvements on this code that safely gets the next element of a list […]
Tag: circular-list
Counting number of nodes between two nodes
Problem This code counts the number of nodes between any given two nodes in a circular linked list. Any feedback […]
Circular buffer implementation for buffering TCP socket messages
Problem I have written my own for practice and also some tweaks for my specific requirement. There is an insert […]
std::array based push-only circular buffer
Problem Minimal implementation of a circular buffer based on std::array, where elements can only be pushed and iterated. I’m interested […]
Checking against a specific sequence in python
Problem I’m trying to learn python and I’m modeling a simple dice game that a friend and I invented. On […]
Find the sum of all digits that match the following digit in a circular list
Problem The challenge The captcha requires you to review a sequence of digits (your puzzle input) and find the sum […]
JavaScript circular linked list compatriot game
Problem I found this question in O’Reilly Data Structure and Algorithm in Javascript: According to legend, the first-century Jewish historian […]
Left Shifting an array of ints
Problem The problem I am referring to is here So basically it’s about shifting an array of ints 1 position […]
Left Shifting an array of ints
Problem The problem I am referring to is here So basically it’s about shifting an array of ints 1 position […]
Circular Buffer implementation in Ruby
Problem Does the implementation look correct? Did I miss something major/minor? class CircularBuffer class BufferEmptyException < StandardError; end; class BufferFullException […]
- 1
- 2