Update appNew update is available. Click here to update.
About
Techno Main Salt Lake 2024
My Stats
EXP gained
yellow-spark
7128
Level
6 (Specialist)
Community stats
Discussions
0
Upvotes
0
Know more
139
Total problems solved
78
Easy
50
Moderate
11
Hard
0
Ninja
Jan Jan Feb Feb Mar Mar Apr Apr May May Jun Jun Jul Jul Aug Aug Sep Sep Oct Oct Nov Nov Dec Dec

Current streak:

0 days

Longest streak:

9 days

Less

More

Achievements
1
Ronin
Topics
Sorting
2
Samurai
Topics
Linked List
Arrays
Discussions
tell me what is the problem anyone pls

int ninjaAndLadoos(vector<int> &row1, vector<int> &row2, int m, int n, int k) {

    // Write your code here.

    

    for(int i=0;i<n;i++)

    {

        row1.push_back(row2[i]);

    }

    sort(row1.begin(),row1.end());

    return row1[k-1];

}

profile
Bihan Sen Gupta
Published On 18-Jul-2023
79 views
0 replies
0 upvotes