i can't figure out why my solution getting WA.
am using greedy approach and it passed many cases.
there's any cases fail my code ?
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <string.h>
using namespace std;
void Simplify(string &Exp)
{
bool neg[100000 ...
Search found 2 matches
- Thu Oct 03, 2013 12:23 am
- Forum: Volume 120 (12000-12099)
- Topic: 12088 - Expression
- Replies: 1
- Views: 1390
- Fri Aug 31, 2012 1:14 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11137 - Ingenuous Cubrency
- Replies: 16
- Views: 12243
Re: 11137 - Ingenuous Cubrency
what data type should be used in this problem ??