Prerequisite API An API is an application programming interface. It is a set of rules that allow programs to talk to each other. The developer creates the API on the server and allows the client to talk to it. REST API REST determines how the API looks like. It stands for “Representational State Transfer”. It is a setContinue reading “REST APIs using Dropwizard- Introductory Tutorial”
Daily Archives: May 7, 2020
Implement strStr()- LeetCode
Problem Statement Implement C’s strstr() and Java’s indexOf(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Example 1: Input: haystack = “hello”, needle = “ll” Output: 2 Example 2: Input: haystack = “aaaaa”, needle = “bba” Output: -1 Intuition Complexity Analysis Time Complexity- O(n) where n = pContinue reading “Implement strStr()- LeetCode”