Skip to main content

All Questions

5 votes
2 answers
1k views

I have a bit of experience in programming but not that much. I was trying to create a TicTacToe Game in Javascript. I was doing my best to have a good structure. I was thinking about using classes, ...
Cats's user avatar
  • 165
1 vote
1 answer
557 views

CodeSignal put out a challenge by Uber that involves writing a "fare estimator" that involves a function dependent on cost per minute, cost per mile, ride time and ride distance. The formula ...
Aleksey's user avatar
  • 173
2 votes
2 answers
209 views

This problem is from https://adventofcode.com/2020/ day 1. I need to find the N entries of inputs that sum to 2020 and then multiply those N numbers together. ...
Martin Morterol's user avatar
-3 votes
2 answers
125 views

for i in range(1,int(input())+1): print(((10**i -1)//9)*((10**i -1)//9)) print('lol just need to fill one more line to post the question IGNORE IT') What is ...
Ayush Shukla's user avatar
2 votes
1 answer
117 views

I have three lists of nodes. sources sinks pipes There is a directed weighted graph from sources to pipes to sinks. Sources are only connected to pipes and pipes only to sinks. But sources are not ...
yukashima huksay's user avatar
2 votes
2 answers
362 views

I wrote the following code which when executed prints the score of https://github.com/dhh. ...
Praneetha's user avatar
  • 165
7 votes
3 answers
4k views

The LAMBCHOP doomsday device takes up much of the interior of Commander Lambda's space station, and as a result the prison blocks have an unusual layout. They are stacked in a triangular shape, and ...
user40929's user avatar
  • 163
4 votes
0 answers
481 views

A follow up to my previous question which was on the token library that this lexer produces a stream of. View the full project, the tokens library, the parser combinator library, or this lexer ...
CAD97's user avatar
  • 1,944
6 votes
1 answer
4k views

I have an elevator simulator. After launching the script it always waits for the user input. The user can press get number, where number is a floor where the passenger is located. Note that one of the ...
Alex Ermolaev's user avatar
4 votes
1 answer
174 views

This may seem a little small, but it's actually a self-contained crate in my project. This crate contains definitions for the source tokens in the language I'm working on, Nafi. As of current, it's ...
CAD97's user avatar
  • 1,944
22 votes
4 answers
2k views

As we have our Community Oriented Development Extravaganza, Requiring Extreme Vigor Inciting Extraordinary Winners 2017 Challenge. Finally I had some time to write a tokenizer for my own language. It ...
Michał Paszkowski's user avatar
8 votes
3 answers
4k views

I had some spare time so I have decided to write a simple tokenizer in C# for my own programming language. The tokenizer is not finished, but it is working and I would like to hear your opinion on ...
107MP's user avatar
  • 125
54 votes
1 answer
2k views

This is my attempt at the May 2017 Community Challenge in Swift, with a chain consisting of rigid links. I took this as an opportunity to learn SpriteKit, Apple's framework for 2D games. At least ...
Martin R's user avatar
  • 24.2k
8 votes
1 answer
247 views

Code Review's April 2017 Community Challenge has us simulating a multi-way intersection. My emphasis was around safety (don't want cars crashing) and ease of use. I plan on adding "smart intersections"...
Justin's user avatar
  • 3,333
9 votes
2 answers
452 views

My rational for this program, was to learn more of Python's standard library, I didn't actually know cmd was even in it until I started this program. It's also the ...
Peilonrayz's user avatar
  • 44.6k

15 30 50 per page
1
2 3 4 5
9