DSA 2 EASY




DSA 2 EASY 

Given 2 strings, return if its an anagram or notDanish Khan
What is a String.Danish Khan
Stack VS Queue.Danish Khan
Task 1 :- Add a node in a Linked List at a given Index.Danish Khan
Task 2 :- Check if the Given String is palindrome.Danish Khan
Task 2 :- Check if the Given String is palindrome.Danish Khan
- What is a Linked List.Danish Khan
- Advantages of Linked List.Danish Khan
- Circular Linked List.Danish Khan
- Singly Linked List VS Doubly Linked List.Danish Khan
- Stack VS Queue. ( answered correctly )Danish Khan
Task 1 :- Check if the Given String is palindrome.Danish Khan
Task 2 :- Add a node in a Linked List at a given Index.Danish Khan
Task 3 :- Given a string str = "my name is danish khan", convert it into "My Name Is Danish Khan".
Implement a stack using an arrayDev Mittal
Reverse a given stringHardik Singh
Reverse a Linked ListHardik Singh
What is linkedList and what are its purpose?Himanshu Manu Udhawani
Advantages and Dis-advantages of LLHimanshu Manu Udhawani
Singly LL vs Doubly LL.Himanshu Manu Udhawani
Linear DS vs Non-linear DSHimanshu Manu Udhawani
Array Vs. linkedlistHimanshu Manu Udhawani
Define stack with its mode of operation.Himanshu Manu Udhawani
Define queue with its mode of operation.Himanshu Manu Udhawani
Stack vs QueueHimanshu Manu Udhawani
Reverse a Linked ListHimanshu Manu Udhawani
Reverse string using stackHimanshu Manu Udhawani
find first and last index of repeated valueMahima Yadav
remove duplicate value of linkedlistMahima Yadav
Reverse every word in given stringMahima Yadav
LinkedList representation using StacksMahima Yadav
advantages of LL over arrays.Manish Shaw
wap to add and print the all the nodes in linkedlist.Manish Shaw
wap to find the mid element of a linkedlistManish Shaw
stacks & queue? its application..Manish Shaw
reverse a string using stack.Manish Shaw
how many queues will be needed to form a stack.Manish Shaw
Reverse a stringManish Shaw DSA 2 Easy
Display all the substrings of a given stringManish Shaw
create a linked list with add functionManish Shaw
difference between stack and queueManish Shaw
binary search in linked list time complexityManish Shaw
array or linked listManish Shaw
Print your name in reverse orderManish Shaw
Remove all the vovel from given StringManish Shaw
Program to print all substring of a given StringManish Shaw
Advantages of using linkedlists overall the arrays.Manish Shaw
wap to find the mid element of a linkedlistManish Shaw
Insert a node at a given positionmechate levanyasai
Anagram stringsmechate levanyasai
Write a program to check the linked list is palindrome or not ?Nihal Shaikh
1) Write a program to check the given linked list is palindrome or not ?Nihal Shaikh
2) Problem Statement: Given a set of strings, find the longest common prefix.
Examples:
Nihal Shaikh
Examples:Nihal Shaikh
Input: {"geeksforgeeks", "geeks", "geek", "geezer"}Nihal Shaikh
Output: "gee"Nihal Shaikh
Input: {"apple", "ape", "april"}Nihal Shaikh
Output: "ap"Nihal Shaikh
What is a Stack ? & its implementationPavan Bhanshali
Write a program Linked list adding a node in the endPavan Bhanshali
Write a program to reverse a custom linked list.Pavan Bhanshali
Write a program to implement queue using Stack (2 stacks or call stack)Pavan Bhanshali
Balence parentesisPavan Bhanshali
Find Middle in Linkedlist.Pavan Bhanshali
https://gist.github.com/sudipt1999/bb24dc5d2c462dd4caecfd7704dafe1esudipt dabral
Longest Common Prefix (leetcode)Sumit Saurav
remove duplicated from a sorted linkedlist(leetcode)Sumit Saurav
Valid parenthesis(leetcode)Sumit Saurav
Write a code implementation of a doubly-linked list, it should support add, remove the last node, and print linked list functionalityThompson Naidu
Delete a node from the linked list (given node that have to be delete no access to head )Thompson Naidu
Thompson Naidu
Find the greatest element to the right of the targetVinoth kumar
Remove duplicate in a StringVinoth kumar
What is a String?Sandip jha
- Implement Queue using LinkedListSandip jha
- is String mutable or immutable ?Sandip jha
- What is Queue. : answeredSandip jha
Sandip jha
- the logic of reverse the LinkedList : partSandip jha
- Implement reverse the string.Sandip jha
- Implement LinkedList class: answeredSandip jha
- What is Stack and its operations: answeredSandip jha
- Implement LinkedList class: answeredSandip jha
- Implement the above question by using stack:Sandip jha
count the number of Spaces in the given string.Danish Khan
Add a node in a Linked List at a given Index.Danish Khan
Write a function detectAndRemoveLoop() that checks whether a given Linked List contains a loop and if loop is present then removes the loop and returns true. If the list doesn’t contain a loop then it returns false.Shubham Madheysia
1. Write a function to find the longest common prefix string amongst an array of strings.Lakkakula Venkatesh
If there is no common prefix, return an empty string "".
2. Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.Lakkakula Venkatesh
An input string is valid if:
Open brackets must be closed by the same type of brackets.
Open brackets must be closed in the correct order.
3. Find out whether the given small-word is present in big-word.Lakkakula Venkatesh
1. Explain Circular Linked List
Divyanshu Shukla
2. Applications of Queue and Stack
3. What will be the output of following code
void fun1(struct node* head)
{
if(head == NULL)
return;
fun1(head->next);
printf("%d ", head->data);
}
4. Suppose a stack is to be implemented with a linked list
instead of an array. What would be the effect on the time
complexity of the push and pop operations of the stack
implemented using linked list (Assuming stack is
implemented efficiently)
5. What will be the output of following code
(i) String s1 = "abc";
String s2 = new String("abc");
System.out.println(s1==s2)
(ii) String s1 = "abc";
String s2 = "abc";
System.out.println(s1==s2)
6. Print characters and their frequencies in a string-->
7. Palindrome Linked List
1. Given a singly linked list and a position, delete a linked list node at the given position.Tanish Shah
a function Writewhich can delete node at the given position.Tanish Shah
Example:
Input: position = 1, Linked List = 8->2->3->1->7
Output: Linked List = 8->3->1->7
Tanish Shah
2. Given a string str of length N which consists of only 0, 1 or 2s, count the number of substring which have equal number of 0s, 1s and 2s.
Tanish Shah
Example 1:
Tanish Shah
Input: str = “0102010”
Output: 2
Tanish Shah
Explanation: Substring str[2, 4] = “102” and
substring str[4, 6] = “201” has equal number
of 0, 1 and 2
1. Given a string, check whether it is Palindromic or notAshim Kaushal
2. https://leetcode.com/problems/middle-of-the-linked-list/Ashim Kaushal
3. https://leetcode.com/problems/valid-parentheses/Ashim Kaushal
1. Delete elements of a linked list after kth node?Deependra Singh
2. Write a code to find middle element of a linked list?
Difference between array and link listHarshil jain
Diff between stack and queue
Priority queqe
Write a code to Implement Link list
Himanshu Manu Udhwani
- What is Linked list whats purpose of it in
- Advantages and disadvantages of Linked list
- Difference between singly and doubly Linked list
- What is difference between Array and linked List
-Difference between linear and non linear data structure
-What is stack ? Operations of stack
-What is queue ? Operations of queue
- Difference between Stack and Queue
- Coding Question asked :
a.) Code to reverse a Linked List
b.) Reverse a string using a Stack
- Time complexity
1) Find the middle node from the given linked list.Niharika Nishu
1. swap two strings,
2. reverse a string,
make lowerCase to upperCase and vice-versa in a given string
Vikas Kumar
1. What is string
2. What is linked list
3. What are different types of linked lists
3. What is difference between stack and queue
4. Implement a code to check whether the string is pelindrome or not
5. Implement a code to check the duplicate characters in string and find the count of them
Shivam Singh
How you create String objectAkash Kumar Soni
Why String is immutableAkash Kumar Soni
Difference between String Buffer and BuilderAkash Kumar Soni
What is String constant pool-------
Write a program to reverse the string using recursion--------
Write a Program to reverse the string using string builder------
What is Linked List-------
Write a program remove duplicate elements from linked list--------
Write a program to count integers from given string--------
What is stack---------
Diff between LIFO and FIFO----------
What is Queue------
What is Circular QueueAkash Kumar Soni
What is priority queue
merge sortsubham bajpai
triple sumsubham bajpai
Create a linked list with addNode, printList and reverseList methodsAshish Keshri
Check whether strings are anagrams or not.Ashish Keshri
Ashish Keshri
Ashish Keshri
1. Implement Linked ListRishikesh Puri
2. Reverse Linked ListRishikesh Puri
3. Remove middle element from StackRishikesh Puri
What is Linked list whats purpose of it
Himanshu Manu Udhwani
- Advantages and disadvantages of Linked list
- Difference between singly and doubly Linked list
- What is difference between Array and linked List
-Difference between linear and non linear data structure
-What is stack ? Operations of stack
-What is queue ? Operations of queue
- Difference between Stack and Queue
- Coding Question asked :
a.) Code to reverse a Linked List
b.) Reverse a string using a Stack
- Time complexity
Given two strings, find if string 1 is present in stringSahil Sarpal
1. Explain about strings and how to create strings?
chandra praksha
2. Write a program to check characters of two strings are same or not?
3. Explain about linked list and its. diff. types?
4. How to add a new node at a given position in linked list?
5. Explain about stack and queue and their methods? Diff. between pop and peek?
6. How to reverse a string using stack?
A sentence is a list of words that are separated by a single space with no leading or trailing spaces.
Niharika Nishu
You are given an array of strings sentences, where each sentences[i] represents a single sentence.
Return the maximum number of words that appear in a single sentence.
Given the head of a singly linked list, return true if it is a palindrome or false otherwise.
1) What is Strings In javaManikantha s
2) Write a program to remove the special characters in a StringManikantha s
3) Write a program to reverse a string using StackManikantha s
4) Mention some difference between Array and StackManikantha s
L What is DSASudhanshu Sekhar
Difference between stack and queueSudhanshu Sekhar
Implementation of reverse the linked list lSudhanshu Sekhar
Check for balanced parenthesesSudhanshu Sekhar
1. Given the head of a singly linked list, reverse the list and return the reversed list.Rishikesh Puri
2. Delete middle element from stckRishikesh Puri
3. Balanced BracketsRishikesh Puri
https://leetcode.com/problems/reverse-linked-list/submissions/mandeep
https://leetcode.com/problems/palindrome-linked-list/submissions/mandeep
Implement Stacktarun
Valid palindrome leetcodetarun

No comments:

Post a Comment

ads vert

Basic HTML Tables - Layout, HTML Tables, Attributes, Aside, Footer, Tr tag, Td tag, Th tag, Tbody

  Basic HTML Tables - Layout, HTML Tables, Attributes, Aside, Footer, Tr tag, Td tag, Th tag, Tbody < table >      < thead >    ...