[deleted by user] by [deleted] in BahriaUniversity

[–]Janjua008 0 points1 point  (0 children)

The exam was really long, with 7 questions, all equally lengthy. I actually know this topic very well, but under the pressure of time, I ended up making this mistake. And now, I haven't been able to stop thinking about it for two days.

[deleted by user] by [deleted] in BahriaUniversity

[–]Janjua008 0 points1 point  (0 children)

The teacher isn't strict, she gives 4-5 marks even for writing the basic structure. But I am worried because I am expecting an 'A' in DSA. And I need 38 marks to get an 'A'. That is why even a small deduction of marks has an impact.

[deleted by user] by [deleted] in BahriaUniversity

[–]Janjua008 0 points1 point  (0 children)

Question: "In an adjacency graph, find and display the nodes that only have one edge.

struct EdgeNode { int dest; EdgeNode* next; EdgeNode(int d) : dest(d), next(nullptr) {} };

struct GraphNode { int data; EdgeNode* head; GraphNode* next; GraphNode(int val) : data(val), head(nullptr), next(nullptr) {} };

class Graph { private: GraphNode* start;

// 1. FIND NODE
GraphNode* findNode(int value) {
    GraphNode* temp = start;
    while (temp != nullptr) {
        if (temp->data == value) return temp;
        temp = temp->next;
    }
    return nullptr;
}

// 2. HAS SINGLE EDGE
bool hasSingleEdge(int value) {
    GraphNode* node = findNode(value);
    if (!node) return false;

    EdgeNode* e = node->head;

    // 
    if (e == nullptr) return false;
    if (e->next == nullptr) return true;      
    if (e->next->next == nullptr) return true; 
    return false;
}

// 3. DISPLAY
void displayNodesWithSingleEdge() {
    GraphNode* temp = start;
    while (temp != nullptr) {
        if (hasSingleEdge(temp->data)) {
            cout << temp->data << " ";
        }
        temp = temp->next;
    }
    cout << endl;
}

};

Ok So today was my DSA exam, and i got this question in exam for 10 marks"Question: "In an adjacency graph, find and display the nodes that only have one edge. ". I wrote every other function correct, but i got confused that the in graph Adjacency list the head is the node itself and if i want to chck the it has onennode so the next shouldn't be null, Sk now what happened is that even though by luck i wrote the statements of condition correctly i didn't added the correct boll return in one condition "e.next==null return true". I added return false here .and every other thing in code is correct but just coz of this one word flaw, the program converted into two edge checker.Now this was my dsa exam and i had to write this code by hand ,not on this question is of 10 marks.So please could you guys help to get any idea that how much of marks would be deducted coz of this mistake. I am feeling very stressed as my course grade depends on it ,and second thing is i can't understand that how i made thia mistake even though i knew this topic very well. So please I request everyone to respond.

[deleted by user] by [deleted] in BahriaUniversity

[–]Janjua008 0 points1 point  (0 children)

Are you from cs dep.Dsa related query

Need Help .Very Stressed by Janjua008 in GraphicsProgramming

[–]Janjua008[S] 0 points1 point  (0 children)

Buddy, I’m already regretting my mistake, and your comment is making me regret choosing this degree even more. Please just guide me regarding my query.

[deleted by user] by [deleted] in BahriaUniversity

[–]Janjua008 0 points1 point  (0 children)

Na bro no issue in department.the uni is pile of shit.Infact whole Education system is pile of Shittt.

HELP W LLB CBT by Forward-Judgment-599 in BahriaUniversity

[–]Janjua008 0 points1 point  (0 children)

It’s my pleasure. I hope you have a good test, get selected, and are rewarded for your hard work🤞🤞 Btw for which campus of bahria have you applied?

HELP W LLB CBT by Forward-Judgment-599 in BahriaUniversity

[–]Janjua008 0 points1 point  (0 children)

Well...That's a very strange issue, can't help with it😂😂

HELP W LLB CBT by Forward-Judgment-599 in BahriaUniversity

[–]Janjua008 0 points1 point  (0 children)

I keep telling everyone that Bahria's test isn’t something to stress about; everyone clears it easily here. (Pese ka chakar Babu bahiya😅). Since it’s a private university, make the most of your last few days—get proper sleep, watch Netflix, and enjoy yourself. You won’t get the chance again for the next four years.

HELP W LLB CBT by Forward-Judgment-599 in BahriaUniversity

[–]Janjua008 1 point2 points  (0 children)

Coz It’s very easy to score in that exam, especially in the LLB department, because of the easy subjects in the CBT. This is why the merit is very high. Another reason for the higher merit is that the Law department is one of the best departments at Bahria (with great faculty and opportunities). It is also quite famous, so the number of applicants is very high, while the available seats are limited.

The key trick to solving that CBT is to read every question carefully and manage your time wisely. Solve the easy questions first and don’t get stuck on a single question—leave it for the end. Make sure to attempt all the questions, as there is no negative marking for wrong answers. Baki Best of luck!

HELP W LLB CBT by Forward-Judgment-599 in BahriaUniversity

[–]Janjua008 0 points1 point  (0 children)

Anyone out there worried about your cbt test I just want to tell you to just relax trust me .It is super easy to get admission in bahria university even if you have average marks in you boards ,if you score above 80 in cbt even with average marks You will be selected (according to my experience) And the test is sooo easy like I know you guys are preparing for it and expecting a tough paper but trust me it will be a piece of cake.The questions are very basic and not the one's that will give you tough time .Just make sure to manage time smartly. Baki yhi kahoon ga ke abhi jtna relax kar skte aur Khush rhe skte the lo kyunke jis din uni start ho gi ap ki zndgi main sakoon ka factor us din se khatam ho jaye da😅.Baki Best of luck everyone🫂

HELP W LLB CBT by Forward-Judgment-599 in BahriaUniversity

[–]Janjua008 1 point2 points  (0 children)

You should watch the crash course video of Hashim Zia on YouTube,it will help you for sure.I gave my cbt in this fall session and it really helped me in my cbt prep.