Code Review Weekly Newsletter
Code Review Weekly Newsletter

Top new questions this week:

Linked List in C#

I was searching for a implementation of a Linked List with the same power as a native List. I wanted functionality closer to a List. The System.Collections.Generic.LinkedList misses some methods I'm ...

c# linked-list reinventing-the-wheel  
asked by fubo 15 votes
answered by Pieter Witvoet 20 votes

Optimizing an A* algorithm

I am currently using an implementation of the A* algorithm described here. Currently, when I run my algorithm, my IDE lags horribly and the .exe generated also lags terribly. Using the CPU analyzer, ...

c# performance xna a-star  
asked by Charsmud 14 votes
answered by BlueRaja - Danny Pflughoeft 29 votes

Rainfall - August 2016 Community Challenge (Hooray for graphs!)

A solution for the August 2016 Community Challenge (Rainfall). I've intentionally left out error checking on the file formatting. This seems like a very obvious graph problem to me - we want to ...

python performance python-2.7 graph community-challenge  
asked by Dannnno 11 votes
answered by Dannnno 5 votes

Classifying the user into an age bracket

In this program, I have to check the range of a given age and then print a message as per the age. I want to optimize the if else logic. /* Sample code to read in test cases:*/ import java.io.*; ...

java  
asked by Prabhat Yadav 10 votes
answered by Pimgd 18 votes

Lexer for a language I'm working on

I've recently started working on making my own programming language and I just wrapped up its lexer. I'm too young to take any official training in C, compiler construction, or computer science so I'm ...

c lexical-analysis  
asked by Hedron 10 votes
answered by vnp 4 votes

Dijkstra's algorithm in C99

I just implement Dijkstra's algorithm in C99. Can you review my code please? I'm looking for any mistake, performance improvement or coding style errors. main.c #include "src/map.h" #include ...

c graph pathfinding c99  
asked by V.Collette 10 votes
answered by pacmaninbw 6 votes

A LISP version of the Schwartzian Transform

Randal Schwartz stole LISP's decorate-sort-undecorate idiom when he came up with what we'd later call the Schwartzian Transform. With all of my LISP knowledge disappeared through nine half lives, but ...

sorting lisp common-lisp  
asked by brian d foy 9 votes
answered by Renzo 9 votes

Greatest hits from previous weeks:

jQuery dynamic elements like TR and TD, add to HTML table

Is it possible to create dynamic TR and TD elements in an HTML table? Something similar but better than this: jQuery(document).ready(function() { $('button[name="new-title"]').on('click', ...

javascript jquery html  
asked by sebob 4 votes
answered by George 5 votes

Interview coding test: Fizz Buzz

I was recently given a coding test to complete for a potential client. It was a FizzBuzz-type of thing with a two-hour time limit. I had a request to write basic FizzBuzz, then add a special case, ...

java interview-questions fizzbuzz  
asked by Engineer Dollery 34 votes
answered by Mat's Mug 58 votes

Can you answer these?

Currency converter built with AngularJS

I am fairly new to AngularJS and I am trying to improve my knowledge of this JavaScript Framework by building small real-world web-apps. In this case, I have built a currency converter app with ...

javascript angular.js unit-conversion  
asked by Lance Preston 2 votes

Strongly connected components in a graph: Kosaraju's algorithm

I implemented Kosaraju's algorithm on a graph with 800k vertices and 5100k edges. The time taken by various operations are: building graph took 11.84 seconds ordering took 2.54 seconds ...

python graph  
asked by user3620605 2 votes

List of lists from file

I'm writing a sub-routine in AppleScript to get text from a file and insert that text in a list of lists forming a dictionary. Text File: a:b c:d e:f Expected list: {{"a", "b"}, {"c", "d"}, ...

parsing dictionary applescript  
asked by Harrison Tran 2 votes
Subscribe to more Stack Exchange newsletters


Unsubscribe from this newsletter or change your email preferences by visiting your subscriptions page on stackexchange.com.

Questions? Comments? Let us know on our feedback site. If you no longer want to receive mail from Stack Exchange, unsubscribe from all stackexchange.com emails.

Stack Exchange, Inc. 110 William St, 28th Floor, NY NY 10038 <3