Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Computer science 2 . Implement a function to check if a string is a palindrome. Computer science 3 . Write a function to find the

Computer science 2. Implement a function to check if a string is a palindrome.
Computer science 3. Write a function to find the factorial of a number.
Computer science 4. Create a function to check if a number is prime.
Computer science 5. Write a program to find the greatest common divisor (GCD) of two numbers.
Computer science 6. Implement the binary search algorithm.
Computer science 7. Write a function to sort an array using the bubble sort algorithm.
Computer science 8. Implement the quicksort algorithm.
Computer science 9. Write a program to find the largest element in an array.
Computer science 10. Create a function to find the second largest element in an array.
Computer science 11. Write a function to merge two sorted arrays into a single sorted array.
Computer science 12. Implement the insertion sort algorithm.
Computer science 13. Write a program to find the length of the longest substring without repeating characters.
Computer science 14. Create a function to check if two strings are anagrams.
Computer science 15. Write a program to count the number of vowels in a string.
Computer science 16. Implement a function to find the missing number in an array of integers from 1 to n.
Computer science 17. Write a function to generate the Fibonacci sequence up to n terms.
Computer science 18. Implement the merge sort algorithm.
Computer science 19. Write a program to find the intersection of two arrays.
Computer science 20. Create a function to find the union of two arrays.
Computer science 21. Write a function to remove duplicates from an array.
Computer science 22. Implement the selection sort algorithm.
Computer science 23. Write a program to find the first non-repeating character in a string.
Computer science 24. Create a function to find the majority element in an array.
Computer science 25. Write a program to rotate an array to the right by k steps.
Computer science 26. Implement a function to check if a given number is a power of two.
Computer science 27. Write a function to convert a binary number to a decimal number.
Computer science 28. Create a function to convert a decimal number to a binary number.
Computer science 29. Write a program to find the longest common prefix among a set of strings.
Computer science 30. Implement the heap sort algorithm.
Computer science 31. Write a function to find the maximum subarray sum using Kadanes algorithm.
Computer science 32. Create a function to perform matrix multiplication.
Computer science 33. Write a program to find the number of islands in a 2D grid.
Computer science 34. Implement a function to check if a string contains valid parentheses.
Computer science 35. Write a function to find the shortest path in a binary matrix.
Computer science 36. Create a function to perform a depth-first search (DFS) on a graph.
Computer science 37. Write a program to perform a breadth-first search (BFS) on a graph.
Computer science 38. Implement the Dijkstras algorithm for finding the shortest path in a graph.
Computer science 39. Write a function to detect a cycle in a linked list.
Computer science 40. Create a function to reverse a linked list.
Computer science 41. Write a program to merge two sorted linked lists.
Computer science 42. Implement a function to find the middle node of a linked list.
Computer science 43. Write a function to remove the nth node from the end of a linked list.
Computer science 44. Create a function to detect and remove a loop in a linked list.
Computer science 45. Write a program to find the lowest common ancestor of two nodes in a binary tree.
Computer science 46. Implement a function to perform an in-order traversal of a binary tree.
Computer science 47. Write a function to perform a pre-order traversal of a binary tree.
Computer science 48. Create a function to perform a post-order traversal of a binary tree.
Computer science 49. Write a program to serialize and deserialize a binary tree.
Computer science 50. Implement the A* algorithm for pathfinding in a graph.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions

Question

c. What were the reasons for their move? Did they come voluntarily?

Answered: 1 week ago

Question

5. How do economic situations affect intergroup relations?

Answered: 1 week ago