Category : java

Split the array into K contiguous pieces having minimal absolute difference between max sum subarray and min sum subarray. I want to return the splitted array. I/P: arr = [3, 4, 5, 3, 7, 2], k = 3 O/P: [[3, 4],[5, 3],[7, 2]] Explaination: subarray1_sum = 7, subarray2_sum = 8, subarray3_sum = 9 Thus, max_sum ..

Read more

how can I print the things from a database? This is the code. Where I must add code to print the things? from flask import Flask from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config[‘SECRET_KEY’] = ‘fadfdaf’ app.config[‘SQLALCHEMY_DATABASE_URI’] = ‘sqlite:///bbb.db’ app.config[‘SQLALCHEMY_TRACK_MODIFICATIONS’] = False db = SQLAlchemy(app) class bbb(db.Model): id = db.Column(db.Integer,primary_key = True) name = db.Column(db.String(150),nullable=False,unique=True) ..

Read more

I upload images from java based android app to firebase storage and store their links in firebase realtime database. I want to send links of the images to python program which is hosted on the cloud and apply face recognition on those images. After the face recognition the python must send a response back to ..

Read more