You are not logged in. Please login at www.codechef.com to post your questions!

×

How do I optimize my code?

I am trying to solve this problem : https://www.codechef.com/problems/WORDS1

I am using BFS to see if the graph is connected and then finding Eulerian path.

My code : https://www.codechef.com/viewsolution/8669072 (adjacency list)

https://www.codechef.com/viewsolution/8669050 (adjacency matrix)

asked 30 Oct '15, 19:36

dragonemperor's gravatar image

3★dragonemperor
89321134
accept rate: 10%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×715
×500

question asked: 30 Oct '15, 19:36

question was seen: 432 times

last updated: 30 Oct '15, 19:36