1
vote
1answer
70 views

Modifying nested dictionaries in Python

My task was to take a configuration specified as a dictionary and run some function with it (the actual function is not relevant here). After implementing that, I was asked to allow some "sweeping" of ...
4
votes
1answer
197 views

Searching an object tree structure

I have this recursive function that searches an object tree structure: ...
5
votes
2answers
2k views

Reversing a linked list by iteration and recursion

From my original question on Stack Overflow: Is my implementation of reversing a linked list correct? I'm a beginner at C and I'd like to know about style, and correctness of the reverse algorithms. ...
9
votes
2answers
781 views

Math expression solver

Recently I've stumbled upon an interesting challenge for me. You should develop C application, that solves math expressions. Operations such as (+,-,*,/) should be supported, as well as (cos, sin, ...
7
votes
1answer
161 views

Suggestions needed for alternative methods of solving sudoku

I am new to programming as well as this site. I am learning Java as my first programming language. I have written a bit of code (of course after struggling a lot). I would love to read expert reviews ...
2
votes
1answer
96 views

Which of these two paren-matching functions is better?

I am currently trying to learn Haskell (after taking a Scala course on Coursera); but while I can write functions that do what I want, I worry that I am not learning to write idomatic/clean/performant ...