a1b10linkso
Sunday, July 19, 2020
Sunday, July 12, 2020
public class Solution
public class Solution {
public int maxArea(int[] height) {
int maxarea = 0;
for (int i = 0; i < height.length; i++)
for (int j = i + 1; j < height.length; j++)
maxarea = Math.max(maxarea, Math.min(height[i], height[j]) * (j - i));
return maxarea;
}
}
Wednesday, July 1, 2020
Friday, June 26, 2020
pokito pokito
from flask import Flask, jsonify
from flask_cors import CORS
app = Flask(__name__)
CORS(app)
students = [
{
'id' : 0,
'name' : 'Donnukrit',
'faculty' : 'Engineering',
'register_subject' : [
'Stat','Com Sec','OOP'
],
},
{
'id' : 1,
'name' : 'John',
'faculty' : 'Engineering',
'register_subject' : [
'Client','Data Structure','OOP'
],
},
{
'id' : 2,
'name' : 'Jane',
'faculty' : 'Engineering',
'register_subject' : [
'SDM','Web App','Intro Com'
],
},
]
@app.route('/')
def index():
return '',methods=['GET'])
def getStudent(id) :
sid = (int)(id)
return jsonify(students[sid])
if __name__ == '__main__':
app.run(host='127.0.0.1', port=5000, debug=True)
This is FLASK Index.py
' @app.route('/api/students/') def method_name(): return jsonify(students) @app.route('/api/students/
Link:
free fortnite skins
Link:
free fortnite skins
Link:
free fortnite skins
Link:
free fortnite skins
Link:
free fortnite skins
Link:
free fortnite skins
Link:
free fortnite skins
Link:
free fortnite skins
Subscribe to:
Posts (Atom)