All Questions
36 questions
2votes
1answer
176views
Getting all column vs. table regardless of alias using JSqlParser
I have been trying to get all column vs. table regardless of alias used, for example, assume this query ...
4votes
7answers
279views
Breaking a string expression in operator and operands
Requesting for a code review for a scala implementation. Problem Given an expression string made of numbers and operators +,-,/,* , break it in a list of Integer or ...
0votes
1answer
85views
Parsing shortcodes out of a string
I wrote this shortcode parsing and it runs in \$O(N^2)\$. Is there a way to better optimize this? ...
1vote
2answers
586views
Reading 12-bit words from 32-bit stream
I have a device (ADC) that stores its samples in a 32-bit buffer and each sample is a 12-bit word : I needed an algorithm to read those samples to a container (say ...
0votes
2answers
1kviews
Good practices for parsing this text file
I have the following .txt file structure that i want to parse in Java(8): ...
3votes
2answers
2kviews
Parsing a std::string to a dictionary (std::map)
As always - the context ! Preliminaries Recently I needed a way to transport data from one environment to another. Though the proper way (probably) to do this would be to use databases (which I don't ...
7votes
1answer
2kviews
Calculator in C - Parsing arithmetic expression using the shunting-yard algorithm
This is a simple arithmetic calculator, which parses mathematical expressions specified in infix notation using the shunting-yard algorithm. This is one of my personal projects and I would love to ...
3votes
1answer
2kviews
Parse HTML bookmarks file to JSON using python
I am currently working on a project for an online course, my goal is to create a bookmark manager web app. So I created this python script to parse a chrome/firefox HTML bookmarks file (Netscape-...
4votes
1answer
231views
A mathematical expression parser with custom data structures
I recently wrote a mathematical expression parser in C++. The software can read valid mathematical expressions and evaluate them. An example of an expression the code can parse is ...
1vote
1answer
104views
Aggregating recent trading data from Bitcoin derivatives exchange
As a component of some trading software, I wrote function parse_ticks(), as part of an Exchange class that models the Bitcoin ...
3votes
1answer
956views
Infix to postfix notation in Haskell (Shunting-yard algorithm)
I've written an infix to postfix converter in Haskell using the Shunting-yard algorithm. Example of how it works: ...
6votes
1answer
8kviews
Use Infix expression to construct a binary expression tree
Problem statement Construct a binary expression using infix expression. The infix expression uses extra parenthesis to enforce the priority of operators. For example, infix expression ...
7votes
2answers
2kviews
Python Prefix Notation Evaluater
I'm designing a new esoteric language, and the interpreter is in Python3. It is going to use Prefix Notation, so as part of the interpreter, I need a function that evaluates a string as prefix ...
5votes
1answer
592views
Quadratic Equation Solver v2.0 in Javascript using Functional Programming
I have posted this in continuation to my earlier post Quadratic equation solver in JavaScript. Tried to improve on the shortcomings last time and also changed the logic. It is still not covering all ...
6votes
3answers
1kviews
Simple parenthesis removal - JavaScript
I solved the following problem: You will be given a mathematical string and your task will be to remove all braces as follows: ...