+ 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!

22nd Nov 2017, 8:33 AM
blackcat1111
blackcat1111 - avatar
35 Answers
+ 16
Here's my try in Java (one line) 😊 https://code.sololearn.com/cQDmsOzTMQKI/?ref=app
22nd Nov 2017, 5:36 PM
LukArToDo
LukArToDo - avatar
+ 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
22nd Nov 2017, 4:31 PM
Käzî Mrîdùl Høssäîn
Käzî Mrîdùl Høssäîn - avatar
+ 13
@Justine,,,sorry,,,first time I didn't understand input system..now work..💪👍
22nd Nov 2017, 12:10 PM
Käzî Mrîdùl Høssäîn
Käzî Mrîdùl Høssäîn - avatar
+ 13
@balckcat... I will try..
22nd Nov 2017, 12:10 PM
Käzî Mrîdùl Høssäîn
Käzî Mrîdùl Høssäîn - avatar
+ 13
@blackcat1111 Hahaha...yes, I agree 😁 I'm studying a little bit of Java8 and stream and try use some of these solutions 🤔
22nd Nov 2017, 10:03 PM
LukArToDo
LukArToDo - avatar
+ 12
@balckcat... can I get now bonus point?
22nd Nov 2017, 4:43 PM
Käzî Mrîdùl Høssäîn
Käzî Mrîdùl Høssäîn - avatar
22nd Nov 2017, 11:41 AM
Käzî Mrîdùl Høssäîn
Käzî Mrîdùl Høssäîn - avatar
+ 11
@Justine.... your code does not work.. your code say:IndexError
22nd Nov 2017, 11:45 AM
Käzî Mrîdùl Høssäîn
Käzî Mrîdùl Høssäîn - avatar
22nd Nov 2017, 1:41 PM
David Akhihiero
David Akhihiero - avatar
+ 11
@balckcat.. thanks
23rd Nov 2017, 2:43 AM
Käzî Mrîdùl Høssäîn
Käzî Mrîdùl Høssäîn - avatar
+ 9
Here i am ( with extra bonus I hope) tried map,reduce random circuit https://code.sololearn.com/cokqGBlL43uv
23rd Nov 2017, 8:02 AM
Oma Falk
Oma Falk - avatar
+ 8
@blackcat my code worked for the bonus test
22nd Nov 2017, 11:52 AM
Justine Ogaraku
Justine Ogaraku - avatar
+ 8
@blackcat yeah ✌. SoloCity is saved. 😂🙌🙋 🎩 😁 👕👍Great! 👖
22nd Nov 2017, 11:56 AM
Justine Ogaraku
Justine Ogaraku - avatar
+ 7
Overall the challenge is just to find which row/column of a 4-by-4 matrix is largest and print the sum
22nd Nov 2017, 8:57 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
22nd Nov 2017, 10:01 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 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
22nd Nov 2017, 11:38 AM
Justine Ogaraku
Justine Ogaraku - avatar
+ 7
@kazi look at how I said you should do it. Hope your input is a square matrix
22nd Nov 2017, 11:46 AM
Justine Ogaraku
Justine Ogaraku - avatar
+ 7
@kazi my code worked with all of #blackcat examples
22nd Nov 2017, 11:47 AM
Justine Ogaraku
Justine Ogaraku - avatar
+ 7
@blackcat did I get the bonus point??
22nd Nov 2017, 11:49 AM
Justine Ogaraku
Justine Ogaraku - avatar
+ 7
@käzî no problem, thanks ✌
22nd Nov 2017, 1:18 PM
Justine Ogaraku
Justine Ogaraku - avatar