Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(414)

Issue 230990043: 3-dopusk - Davydov Vasya

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years ago by dexfrost89
Modified:
9 years ago
Reviewers:
belovpd, ilnur.gadelshin
Visibility:
Public.

Description

dijkstra_with_heap

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -0 lines) Patch
M 1.cpp.c View 1 chunk +128 lines, -0 lines 7 comments Download

Messages

Total messages: 5
dexfrost89
9 years ago (2015-04-20 21:43:00 UTC) #1
dexfrost89
9 years ago (2015-04-20 21:43:12 UTC) #2
dexfrost89
9 years ago (2015-04-20 21:43:28 UTC) #3
dexfrost89
9 years ago (2015-04-21 20:38:53 UTC) #4
BelovPD
9 years ago (2015-04-26 00:46:22 UTC) #5
https://codereview.appspot.com/230990043/diff/1/1.cpp.c
File 1.cpp.c (right):

https://codereview.appspot.com/230990043/diff/1/1.cpp.c#newcode4
1.cpp.c:4: using namespace std;
using namespace std не пишем

https://codereview.appspot.com/230990043/diff/1/1.cpp.c#newcode32
1.cpp.c:32: vector<vector<vertex> > list_of_smejnost;  //sorry for this name
adjacency_list

https://codereview.appspot.com/230990043/diff/1/1.cpp.c#newcode33
1.cpp.c:33: vector<vertex> hlp;
Не надо использовать глобальные вектора и переменные

https://codereview.appspot.com/230990043/diff/1/1.cpp.c#newcode47
1.cpp.c:47: if(b * 2 + 1 < heap.size()) {
Странный иф, это можно добавить в условие цикла.

https://codereview.appspot.com/230990043/diff/1/1.cpp.c#newcode60
1.cpp.c:60: b *= 2;
Непонятно зачем здесь нужно дублирование кода

https://codereview.appspot.com/230990043/diff/1/1.cpp.c#newcode81
1.cpp.c:81: ans.push_back(-1);
Векторам можно сразу задать нужный размер и заполнять их, вместо использования
push_back

https://codereview.appspot.com/230990043/diff/1/1.cpp.c#newcode128
1.cpp.c:128: }
Очень много плохих названий переменных, надо оформить код хорошо.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b