shivamdev31
BAN USER
Questions (3)
Followers (1)
Reputation 10
- 0of 0 votes
AnswersFind the longest cycle in a directed graph in java
- shivamdev31 in United States
I/P -> 23 --> O/P 6
Elements : 4, 4, 1, 4, 13, 8, 8, 8, 0, 8, 14, 9, 15, 9, -1, 10, 15, 22, 22, 22, 2
longest cycle -> 4, 13, 11, 9, 8, 0
Its the value and value at that index.| Report Duplicate | Flag | PURGE
Developer Program Engineer Algorithm - 0of 0 votes
AnswersFind the uncommon elements from 2 lists.
- shivamdev31 in India
I/P :
List 1 : 1, 2, 3, 4, 5
List 2 : 3, 4, 5, 6, 7
O/P : 1, 2, 6, 7
I/P :
List 1 : 1, 2, 3, 1, 5
List 2 : 3, 4, 5, 6, 7
O/P : 1, 1, 2, 6, 7
Most probably using space O(n)| Report Duplicate | Flag | PURGE
Android Engineer Algorithm
Page:
1
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.