+ 14
[ASSIGNMENT] Security Circuit
Please see challenge description in code. (Too many characters) 😅. https://code.sololearn.com/c0b2KD27dRf0/?ref=app Have fun coding! All languages are welcome!
35 Answers
+ 16
Here's my try in Java (one line) 😊
https://code.sololearn.com/cQDmsOzTMQKI/?ref=app
+ 14
This is my New version..this time u can input (nxn) matrix....
but u have to change a variable..
Let's replace value of a...
row and column must be equal equal..
example:
a=[[27,52,25,98],[6,8,4,9],[76,8,6,5],[78,54,96,0]]
or
a=[[62,5,8,5,8,44,8],[7,9,5,9,5,8,0],[66,8,5,99,5,0,88],[6,4,8,4,8,4,1],[7,5,3,9,0,7,12],[75,9,5,8,0,6,4],[7,9,5,4,9,0,5]]
👼Thanks👼
https://code.sololearn.com/ces94R8E7MZB/?ref=app
+ 13
@Justine,,,sorry,,,first time I didn't understand input system..now work..💪👍
+ 13
@balckcat...
I will try..
+ 13
@blackcat1111
Hahaha...yes, I agree 😁
I'm studying a little bit of Java8 and stream and try use some of these solutions 🤔
+ 12
@balckcat...
can I get now bonus point?
+ 11
@Justine....
your code does not work..
your code say:IndexError
+ 11
@balckcat..
thanks
+ 9
Here i am ( with extra bonus I hope)
tried map,reduce
random circuit
https://code.sololearn.com/cokqGBlL43uv
+ 8
@blackcat
my code worked for the bonus test
+ 8
@blackcat
yeah ✌. SoloCity is saved. 😂🙌🙋
🎩
😁
👕👍Great!
👖
+ 7
Overall the challenge is just to find which row/column of a 4-by-4 matrix is largest and print the sum
+ 7
here's mine:
https://code.sololearn.com/ct7yWusPbOgz/?ref=app
It's takes, n*n-square matrix.
NOTICE:
On my program, there is a variable 'matrix' which is set to an empty list. So write your set of list there.
EXAMPLE :
it's like this :
matrix =[
]
So do this:
matrix = [
[7, 0, 8, 3], [4, 5, 6, 4], [3, 8, 2, 4], [3, 9, 4, 3]
]
or
matrix = [
[14, 22, 4, 8, 22, 24], [14, 8, 18, 3, 5, 14], [16, 7, 21, 27, 25, 2], [24, 4, 2, 12, 2, 30], [22, 3, 8, 27, 3, 29], [10, 4, 19, 25, 6, 20]
]
Check it out. We just saved SoloCity
+ 7
@kazi
look at how I said you should do it. Hope your input is a square matrix
+ 7
@kazi
my code worked with all of #blackcat examples
+ 7
@blackcat
did I get the bonus point??
+ 7
@käzî
no problem, thanks ✌