https://i.imgur.com/T0fcnXo.png

[LeetCode] 3. Longest Substring Without Repeating Characters

Longest Substring Without Repeating Characters Link to original Problem on LeetCode Given a string, find the length of the longest substring without repeating characters. Example 1: Input: “abcabcbb” Output: 3 Explanation: The answer is “abc”, with the length of 3. Example 2: Input: “bbbbb” Output: 1 Explanation: The answer is “b”, with the length of 1. Example 3: Input: “pwwkew” Output: 3 Explanation: The answer is “wke”, with the length of 3.

Coding Interview: Warm Up

FizzBuzz Link to original Problem on LeetCode Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three, it should output “Fizz” instead of the number and for the multiples of five output “Buzz”. For numbers which are multiples of both three and five output “FizzBuzz”. Example: n = 15, Return: [ “1”, “2”, “Fizz”, “4”, “Buzz”, “Fizz”, “7”, “8”, “Fizz”, “Buzz”, “11”, “Fizz”, “13”, “14”, “FizzBuzz” ]

TensorFlow Basic

TensorFlow Basic I made this post for revision purpose. This post contains most of the tensorflow basics and how does they work in a sense. Most of the code is beginner friendly. There is no need for pre-requisite programming knowledge of tensorflow in any sense to go through this notebook, but you should have a basic understanding of Python and how array works in general (also if you have a knowledge of AI, that would be great).

Building a Restful API using JAX-RS

1. What are the tools needed? 2. Basic setup 3. Setting up Tomcat Server and Postman 4. Structure 5. Book Model 6. Book Database 7. Book Services 8. Book Resource 9. GET 10. PUSH 11. PUT 12. DELETE 13. Query -Get Book(s) by title -Get Book(s) by subject ID Another thing we are going to use is called Postman. Postman is an HTTP Request composer. It helps you test your API in a very efficient way.

Understanding the very first few lines of basic C++ code

So most of the students in Computer Science Department of a B.Tech college have written code in C++ at some point in their life. Let me begin with a small code snippet. #include<iostream> using namespace std; namespace abc { int a = 100; } int a = 200; int main() { int a = 300; cout << "abc::a = " << abc::a << endl; cout << "::a = " <<::a << endl; cout << "a = " << a << endl; return (0); } Running the code produce this output:

[OOP (CS 594D)] Assignment 1

Assignment 1 Write a Java program to print “Hello World”. Source code: public class HelloWorldnormal { public static void main(String[] args) { System.out.println("Hello World"); } } Output: $ javac HelloWorldnormal.java $ java HelloWorldnormal Hello World Write a Java program to.pront “Hello World”, where ‘World’ will be taken from command line argument. Source code: public class HelloWorldCLA { public static void main(String[] args) { System.out.println("Hello " + args[0]); } } Output: